示例#1
0
 def test_get_email_with_wrong_last_symbol_of_domain(self):
     test_string = '[email protected]#'
     result = get_email(test_string, '*')
     expected = '[email protected]#'
     self.assertEqual(result, expected)
示例#2
0
 def test_get_email_with_wrong_first_symbol_of_username(self):
     test_string = '/[email protected]'
     result = get_email(test_string, '*')
     expected = '/[email protected]'
     self.assertEqual(result, expected)
示例#3
0
 def test_get_email(self):
     test_string = '*****@*****.**'
     result = get_email(test_string, '*')
     expected = 'j*******[email protected]'
     self.assertEqual(result, expected)
示例#4
0
 def test_get_email_without_data(self):
     test_string = 'Lorem ipsum [email protected]'
     result = get_email(test_string, '*')
     expected = 'Lorem ipsum [email protected]'
     self.assertEqual(result, expected)
示例#5
0
 def test_get_email_with_wrong_format(self):
     test_string = 'Lorem [email protected] am'
     result = get_email(test_string, '*')
     expected = 'Lorem [email protected] am'
     self.assertEqual(result, expected)
示例#6
0
 def test_get_email_with_symbol_1(self):
     test_string = 'Lorem [email protected] am'
     result = get_email(test_string, '*')
     expected = 'Lorem a******[email protected] am'
     self.assertEqual(result, expected)