def test_bad_email_regex(): for item in BAD_EMAILS: assert EMAIL_REGEX.search(item) is None
def test_good_email_regex(): for item in GOOD_EMAILS: assert item == EMAIL_REGEX.search(item).group()
def test_bad_email_regex(self): for item in BAD_EMAILS: self.assertIsNone(EMAIL_REGEX.search(item))
def test_good_email_regex(self): for item in GOOD_EMAILS: self.assertEqual(item, EMAIL_REGEX.search(item).group())