Esempio n. 1
0
 def setUp(self):
     super().setUp()
     self.dynamic_structure = factories.DynamicStructure()
 def setUp(self):
     self.dyn_struct = factories.DynamicStructure()
     self.field_struct = factories.DynamicStructureField(
         structure=self.dyn_struct)
Esempio n. 3
0
 def test_unicode(self):
     name = "test_structure"
     dyn_struct = factories.DynamicStructure(name=name)
     self.assertEqual(name, dyn_struct.__unicode__())
Esempio n. 4
0
 def setUp(self):
     self.dyn_struct = factories.DynamicStructure()
     factories.DynamicStructureField.create_batch(size=10,
                                                  structure=self.dyn_struct)
Esempio n. 5
0
 def test_str(self):
     name = "test_structure"
     dyn_struct = factories.DynamicStructure(name=name)
     self.assertEqual(name, str(dyn_struct))