def test_returns_True_for_correct_email(self): self.assertTrue(is_correct_email("*****@*****.**")) self.assertTrue(is_correct_email("*****@*****.**"))
def test_returns_False_if_email_have_two_at_signs(self): self.assertFalse(is_correct_email("themonrea@[email protected]"))
def test_returns_False_for_correct_email(self): self.assertFalse(is_correct_email("themonrea@[email protected]")) self.assertFalse(is_correct_email("@gmail.com")) self.assertFalse(is_correct_email("aidana.yahoo.com"))
def test_returns_False_if_email_contains_two_at_signs(self): self.assertFalse(is_correct_email("mastera@[email protected]")) self.assertFalse(is_correct_email("masteraalish@gmail@com")) self.assertFalse(is_correct_email("@[email protected]"))
def test_returns_True_for_correct_email(self): self.assertTrue(is_correct_email("*****@*****.**"))
def test_email_must_contain_at_sign(self): self.assertFalse(is_correct_email("aidana.yahoo.com"))
def test_returns_if_email_does_not_contain_username(self): self.assertFalse(is_correct_email("@gmail.com"))
def test_email2(self): self.assertFalse(is_correct_email("mfwfwrwgmail.com"))
def test_email1(self): self.assertTrue(is_correct_email("*****@*****.**"))
def test_email(self): self.assertTrue(is_correct_email("*****@*****.**"))