# Path: wirecurly/dialplan/condition.py
# class Condition(object):
# class or_(object):
#     def __init__(self,attr=None,val=None,cont=False,expr=None):
#     def addAction(self,act,val,inline=False):
#     def addAntiAction(self,act,val,inline=False):
#     def addApplication(self, app,inline=False):
#     def existAction(self,act,val,inline=False):
#     def existAntiAction(self,act,val,inline=False):
#     def todict(self):
#     def __init__(self,*args):
#     def todict(self):


import unittest
from wirecurly.dialplan import condition
from wirecurly.dialplan.expression import *
'''
	Test condition creation for dialplan
'''


class AppMock(object):
	"""An application interface mockup"""
	def __init__(self):
		super(AppMock, self).__init__()
		self.app_name = 'test'
		self.data = ''


class testConditionCreation(unittest.TestCase):
	'''
		Test condition creation
	'''

	def setUp(self):
		'''
			Condition fixtures for tests
		'''


# Path: wirecurly/dialplan/condition.py
# class Condition(object):
# class or_(object):
#     def __init__(self,attr=None,val=None,cont=False,expr=None):
#     def addAction(self,act,val,inline=False):
#     def addAntiAction(self,act,val,inline=False):
#     def addApplication(self, app,inline=False):
#     def existAction(self,act,val,inline=False):
#     def existAntiAction(self,act,val,inline=False):
#     def todict(self):
#     def __init__(self,*args):
#     def todict(self):


# Path: tests/test_dialplan/test_condition_creation.py
import unittest
from wirecurly.dialplan import condition
from wirecurly.dialplan.expression import *

'''
	Test condition creation for dialplan
'''


class AppMock(object):
	"""An application interface mockup"""
	def __init__(self):
		super(AppMock, self).__init__()
		self.app_name = 'test'
		self.data = ''


class testConditionCreation(unittest.TestCase):
	'''
		Test condition creation
	'''

	def setUp(self):
		'''
			Condition fixtures for tests
		'''


		self.cond = condition.Condition('destination_number','1000')