# Path: wirecurly/configuration/node.py
# class Node(object):
# 	def __init__(self,perm,add):
# 	def todict(self):


import unittest
from wirecurly.configuration import node
'''
	Test node creation for acls
'''



class testNodeCreation(unittest.TestCase):
	'''
		Test node creation
	'''

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

		self.node = node.Node('allow','100.100.100.100/32')
		
	def test_node_dict_ok(self):
		'''
			Test that node is properly serialized 
		'''

# Path: wirecurly/configuration/node.py
# class Node(object):
# 	def __init__(self,perm,add):
# 	def todict(self):


# Path: tests/test_configuration/test_node_creation.py
import unittest
from wirecurly.configuration import node

'''
	Test node creation for acls
'''



class testNodeCreation(unittest.TestCase):
	'''
		Test node creation
	'''

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

		self.node = node.Node('allow','100.100.100.100/32')
		
	def test_node_dict_ok(self):
		'''
			Test that node is properly serialized 
		'''

		assert isinstance(self.node.todict(), dict)