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)
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)
def test_get_email(self): test_string = '*****@*****.**' result = get_email(test_string, '*') expected = 'j*******[email protected]' self.assertEqual(result, expected)
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)
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)
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)