def test_should_return_true_when_email_is_valid(self): self.assertTrue(mail.is_valid('*****@*****.**'))
def test_should_return_false_when_email_is_invalid(self): self.assertFalse(mail.is_valid('xxxxx'))