def test_email_raises_ValueError(self): for e in ["", None, ["*****@*****.**"], 123]: with self.assertRaises(ValueError): validatorfuncs.email(e)
def validate(self, value, **kwargs): return validatorfuncs.email(value, option_key=self.key, **kwargs)
def test_email_ok(self): for e in ["*****@*****.**", "*****@*****.**"]: self.assertEqual(e, validatorfuncs.email(e))
def test_email_ok(self): for e in ['*****@*****.**', '*****@*****.**']: self.assertEqual(e, validatorfuncs.email(e))