Example #1
0
def test_bad_email_regex():
    for item in BAD_EMAILS:
        assert EMAIL_REGEX.search(item) is None
Example #2
0
def test_good_email_regex():
    for item in GOOD_EMAILS:
        assert item == EMAIL_REGEX.search(item).group()
Example #3
0
 def test_bad_email_regex(self):
     for item in BAD_EMAILS:
         self.assertIsNone(EMAIL_REGEX.search(item))
Example #4
0
 def test_good_email_regex(self):
     for item in GOOD_EMAILS:
         self.assertEqual(item, EMAIL_REGEX.search(item).group())
Example #5
0
 def test_bad_email_regex(self):
     for item in BAD_EMAILS:
         self.assertIsNone(EMAIL_REGEX.search(item))
Example #6
0
 def test_good_email_regex(self):
     for item in GOOD_EMAILS:
         self.assertEqual(item, EMAIL_REGEX.search(item).group())