def test_deconstruct(self): f = ChoiceEnumField(enum_type=MyChoices) name, path, args_, kwargs_ = f.deconstruct() self.assertIsNone(name) self.assertEqual(path, 'shop.models.fields.ChoiceEnumField') self.assertListEqual(args_, []) self.assertDictEqual(kwargs_, {})
def test_deconstruct(self): f = ChoiceEnumField(enum_type=MyChoices) name, path, args_, kwargs_ = f.deconstruct() self.assertIsNone(name) self.assertEqual(path, 'shop.models.fields.ChoiceEnumField') self.assertListEqual(args_, []) self.assertDictEqual(kwargs_, {})
def test_deconstruct(): f = ChoiceEnumField(enum_type=MyChoices) name, path, args_, kwargs_ = f.deconstruct() assert name is None assert path == 'shop.models.fields.ChoiceEnumField' assert args_ == [] assert kwargs_ == {}
def test_deconstruct(): f = ChoiceEnumField(enum_type=MyChoices) name, path, args_, kwargs_ = f.deconstruct() assert name is None assert path == 'shop.models.fields.ChoiceEnumField' assert args_ == [] assert kwargs_ == {}