def test_domain_more_than_1_character_mix_containing_other_characters(
         self):
     argument = 'username@139*#mail.com'
     actual = is_email(argument)
     expect = False
     self.assertEqual(expect, actual)
Beispiel #2
0
 def test_is_email_top_level_domain_too_short(self):
     actual = regular_expressions.is_email("[email protected]")
     expected = False
     self.assertEqual(actual, expected)
Beispiel #3
0
 def test_is_email_whitespace_before_username(self):
     actual = regular_expressions.is_email(" [email protected]")
     expected = False
     self.assertEqual(actual, expected)
Beispiel #4
0
 def test_is_email_period_in_top_level_domain(self):
     actual = regular_expressions.is_email("*****@*****.**")
     expected = True
     self.assertEqual(actual, expected)
Beispiel #5
0
 def test_is_email_empty_string(self):
     actual = regular_expressions.is_email("")
     expected = False
     self.assertEqual(actual, expected)
Beispiel #6
0
 def test_is_email_symbols_as_top_level_domain(self):
     actual = regular_expressions.is_email("A010gsz@gmail.@.@@")
     expected = True
     self.assertEqual(actual, expected)
Beispiel #7
0
 def test_is_email_empty_username(self):
     actual = regular_expressions.is_email("@gmail.com")
     expected = False
     self.assertEqual(actual, expected)
 def test_username_1_character_letter(self):
     argument = '*****@*****.**'
     actual = is_email(argument)
     expect = True
     self.assertEqual(expect, actual)
 def test_username_1_character_underscore(self):
     argument = '*****@*****.**'
     actual = is_email(argument)
     expect = True
     self.assertEqual(expect, actual)
 def test_dot_com_more_than_4_characters_contain_dot_characters(self):
     argument = '[email protected]'
     actual = is_email(argument)
     expect = False
     self.assertEqual(expect, actual)
 def test_dot_contain_underscore(self):
     argument = '[email protected]_2'
     actual = is_email(argument)
     expect = True
     self.assertEqual(expect, actual)
 def test_dot_com_4_characters(self):
     argument = '[email protected]__'
     actual = is_email(argument)
     expect = True
     self.assertEqual(expect, actual)
 def test_dot_com_1_character(self):
     argument = '[email protected]'
     actual = is_email(argument)
     expect = False
     self.assertEqual(expect, actual)
 def test_has_dots_before_dot_com(self):
     argument = '*****@*****.**'
     actual = is_email(argument)
     expect = False
     self.assertEqual(expect, actual)
Beispiel #15
0
 def test_is_email_swapped_domains(self):
     actual = regular_expressions.is_email("A010gsz.com@gmail")
     expected = False
     self.assertEqual(actual, expected)
 def test_username_more_than_1_character_mix(self):
     argument = '*****@*****.**'
     actual = is_email(argument)
     expect = True
     self.assertEqual(expect, actual)
Beispiel #17
0
 def test_is_email_underscore_in_username(self):
     actual = regular_expressions.is_email("*****@*****.**")
     expected = True
     self.assertEqual(actual, expected)
 def test_username_0_character(self):
     argument = '@email.com'
     actual = is_email(argument)
     expect = False
     self.assertEqual(expect, actual)
Beispiel #19
0
 def test_is_email_alphanumeric_username(self):
     actual = regular_expressions.is_email("*****@*****.**")
     expected = True
     self.assertEqual(actual, expected)
 def test_username_more_than_1_character_mix_contain_other_character(self):
     argument = '*****@*****.**'
     actual = is_email(argument)
     expect = False
     self.assertEqual(expect, actual)
Beispiel #21
0
 def test_is_email_missing_period(self):
     actual = regular_expressions.is_email("A010gsz@gmailcom")
     expected = False
     self.assertEqual(actual, expected)
 def test_has_one_at(self):
     argument = '*****@*****.**'
     actual = is_email(argument)
     expect = True
     self.assertEqual(expect, actual)
Beispiel #23
0
 def test_is_email_lower_case_username(self):
     actual = regular_expressions.is_email("*****@*****.**")
     expected = True
     self.assertEqual(actual, expected)
 def test_no_at(self):
     argument = 'usernameemail.com'
     actual = is_email(argument)
     expect = False
     self.assertEqual(expect, actual)
Beispiel #25
0
 def test_is_email_empty_domain(self):
     actual = regular_expressions.is_email("[email protected]")
     expected = False
     self.assertEqual(actual, expected)
 def test_0_domain_space(self):
     argument = 'username@ .com'
     actual = is_email(argument)
     expect = False
     self.assertEqual(expect, actual)
Beispiel #27
0
 def test_is_email_string_after_top_level_domain(self):
     actual = regular_expressions.is_email("[email protected] hello")
     expected = False
     self.assertEqual(actual, expected)
 def test_domain_1_character_letter_uppercase(self):
     argument = '*****@*****.**'
     actual = is_email(argument)
     expect = True
     self.assertEqual(expect, actual)
Beispiel #29
0
 def test_is_email_whitespace_ended_top_level_domain(self):
     actual = regular_expressions.is_email("[email protected] ")
     expected = True
     self.assertEqual(actual, expected)
 def test_domain_more_than_1_character_letter(self):
     argument = '*****@*****.**'
     actual = is_email(argument)
     expect = True
     self.assertEqual(expect, actual)