Пример #1
0
 def test_invalidEmail(self):
     self.assertEqual(False, ipavalidate.Email("test"))
     self.assertEqual(False, ipavalidate.Email("test@freeipa"))
     self.assertEqual(False, ipavalidate.Email("[email protected]"))
     self.assertEqual(False, ipavalidate.Email(""))
     self.assertEqual(False, ipavalidate.Email(None))
Пример #2
0
 def test_invalidEmail(self):
     assert ipavalidate.Email("test") is False
     assert ipavalidate.Email("test@freeipa") is False
     assert ipavalidate.Email("[email protected]") is False
     assert ipavalidate.Email("") is False
     assert ipavalidate.Email(None) is False
Пример #3
0
 def test_validEmail(self):
     self.assertEqual(True, ipavalidate.Email("*****@*****.**"))
     self.assertEqual(True, ipavalidate.Email("", notEmpty=False))
Пример #4
0
 def test_validEmail(self):
     assert ipavalidate.Email("*****@*****.**") is True
     assert ipavalidate.Email("", notEmpty=False) is True