Beispiel #1
0
 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_, {})
Beispiel #2
0
 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_, {})
Beispiel #3
0
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_ == {}
Beispiel #4
0
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_ == {}