

def test_deconstruct(self):
    (name, path, args, kwargs) = self.field.deconstruct()
    self.assertIsNone(name)
    (module, cls) = path.rsplit('.', 1)
    field_class = getattr(sys.modules[module], cls)
    field_instance = field_class(*args, **kwargs)
    self.assertIsInstance(field_instance, self.field.__class__)
    self.assertEqual(field_instance.verbose_name, self.field.verbose_name)
    self.assertEqual(field_instance.default, self.field.default)
    self.assertIsNone(field_instance.colors)

dataset/ETHPy150Open charettes/django-colorful/tests/tests.py TestRBGColorField.test_deconstruct/original