示例#1
0
 def test_normal_email(self):
     self.assertTrue(
         validator.email_validator("*****@*****.**",
                                   self.email_regex_for_testing))
示例#2
0
 def test_allowed_special_characters(self):
     self.assertTrue(
         validator.email_validator("*****@*****.**",
                                   self.email_regex_for_testing))
示例#3
0
 def test_empty_string(self):
     self.assertFalse(
         validator.email_validator("", self.email_regex_for_testing))
示例#4
0
 def test_bad_special_characters_in_email(self):
     self.assertFalse(
         validator.email_validator("l;[email protected]",
                                   self.email_regex_for_testing))
示例#5
0
 def test_camel_case_name(self):
     self.assertTrue(
         validator.email_validator("*****@*****.**",
                                   self.email_regex_for_testing))
示例#6
0
 def test_special_characters_in_domain(self):
     self.assertTrue(
         validator.email_validator("l.badl_ani@g_mail.com",
                                   self.email_regex_for_testing))
示例#7
0
 def test_not_fully_formed(self):
     self.assertFalse(
         validator.email_validator("l.badlani@",
                                   self.email_regex_for_testing))
示例#8
0
 def test_short_domain(self):
     self.assertTrue(
         validator.email_validator("*****@*****.**",
                                   self.email_regex_for_testing))
示例#9
0
 def test_alternate_domain(self):
     self.assertTrue(
         validator.email_validator("*****@*****.**",
                                   self.email_regex_for_testing))
示例#10
0
 def test_no_domain_given(self):
     self.assertFalse(
         validator.email_validator("l.badlani@com",
                                   self.email_regex_for_testing))
示例#11
0
 def test_dot_com_at_end(self):
     self.assertTrue(
         validator.email_validator("*****@*****.**",
                                   self.email_regex_for_testing))
示例#12
0
 def test_too_long_email(self):
     self.assertFalse(
         validator.email_validator(
             "*****@*****.**",
             self.email_regex_for_testing))
示例#13
0
 def test_too_short_email(self):
     self.assertFalse(
         validator.email_validator("[email protected]", self.email_regex_for_testing))
示例#14
0
 def test_no_at_in_email(self):
     self.assertFalse(
         validator.email_validator("lakshaygmail.com",
                                   self.email_regex_for_testing))
示例#15
0
 def test_only_white_space_in_email(self):
     self.assertFalse(
         validator.email_validator("      ", self.email_regex_for_testing))