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)
def test_unicode(self): name = "test_structure" dyn_struct = factories.DynamicStructure(name=name) self.assertEqual(name, dyn_struct.__unicode__())
def setUp(self): self.dyn_struct = factories.DynamicStructure() factories.DynamicStructureField.create_batch(size=10, structure=self.dyn_struct)
def test_str(self): name = "test_structure" dyn_struct = factories.DynamicStructure(name=name) self.assertEqual(name, str(dyn_struct))