def test_normal_email(self): self.assertTrue( validator.email_validator("*****@*****.**", self.email_regex_for_testing))
def test_allowed_special_characters(self): self.assertTrue( validator.email_validator("*****@*****.**", self.email_regex_for_testing))
def test_empty_string(self): self.assertFalse( validator.email_validator("", self.email_regex_for_testing))
def test_bad_special_characters_in_email(self): self.assertFalse( validator.email_validator("l;[email protected]", self.email_regex_for_testing))
def test_camel_case_name(self): self.assertTrue( validator.email_validator("*****@*****.**", self.email_regex_for_testing))
def test_special_characters_in_domain(self): self.assertTrue( validator.email_validator("l.badl_ani@g_mail.com", self.email_regex_for_testing))
def test_not_fully_formed(self): self.assertFalse( validator.email_validator("l.badlani@", self.email_regex_for_testing))
def test_short_domain(self): self.assertTrue( validator.email_validator("*****@*****.**", self.email_regex_for_testing))
def test_alternate_domain(self): self.assertTrue( validator.email_validator("*****@*****.**", self.email_regex_for_testing))
def test_no_domain_given(self): self.assertFalse( validator.email_validator("l.badlani@com", self.email_regex_for_testing))
def test_dot_com_at_end(self): self.assertTrue( validator.email_validator("*****@*****.**", self.email_regex_for_testing))
def test_too_long_email(self): self.assertFalse( validator.email_validator( "*****@*****.**", self.email_regex_for_testing))
def test_too_short_email(self): self.assertFalse( validator.email_validator("[email protected]", self.email_regex_for_testing))
def test_no_at_in_email(self): self.assertFalse( validator.email_validator("lakshaygmail.com", self.email_regex_for_testing))
def test_only_white_space_in_email(self): self.assertFalse( validator.email_validator(" ", self.email_regex_for_testing))