Ejemplo n.º 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_, {})
Ejemplo n.º 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_, {})
Ejemplo n.º 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_ == {}
Ejemplo n.º 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_ == {}