예제 #1
0
파일: unit_test.py 프로젝트: wyerp/bond
 def test_SimpleContainers(self):
     obj = test.SimpleContainers()
     self.serialization(obj, self.initSimpleContainers)
     self.marshaling(obj, self.initSimpleContainers)
     self.list_operations(obj.l_bool)
     self.list_operations(obj.l_uint32)
     self.list_operations(obj.l_string)
     self.list_operations(obj.v_bool)
     self.list_operations(obj.v_uint8)
     self.list_operations(obj.v_double)
     self.list_operations(obj.v_string)
     self.set_operations(obj.s_uint64)
     self.map_operations(obj.m_float_uint16)
     self.map_operations(obj.m_int8_string)
예제 #2
0
파일: unit_test.py 프로젝트: wyerp/bond
 def randomSimpleContainers(self):
     obj = test.SimpleContainers()
     self.initSimpleContainers(obj)
     return obj