

def test_filling_EmailField(self):
    obj = mommy.make(DummyEmailModel)
    field = DummyEmailModel._meta.get_field('email_field')
    self.assertIsInstance(field, EmailField)
    self.assertIsInstance(obj.email_field, string_types)

dataset/ETHPy150Open vandersonmota/model_mommy/test/generic/tests/test_filling_fields.py FillingEmailField.test_filling_EmailField/original