

def test_formfield(self):
    formfield = self.field.formfield()
    self.assertIsInstance(formfield, forms.RegexField)
    self.assertIsInstance(formfield.widget, ColorFieldWidget)
    self.assertEqual(self.regex, RGB_REGEX)

dataset/ETHPy150Open charettes/django-colorful/tests/tests.py TestRBGColorField.test_formfield/VarMisuse@46/61 `formfield`->`self`