Exemplo n.º 1
0
 def test_split_email_multiple_emails(self):
     email = "[email protected] [email protected]"
     out = authorparser.strip_email(email)
     self.assertEqual(out[0], "")
     self.assertEqual(out[1], "*****@*****.**")
     self.assertEqual(out[2], " ")
     self.assertEqual(out[3], "*****@*****.**")
Exemplo n.º 2
0
 def test_split_email_no_emails(self):
     email = "(Joe Bloggs) John Doe"
     out = authorparser.strip_email(email)
     self.assertEqual(out[0], email)
Exemplo n.º 3
0
 def test_split_email(self):
     email = "[email protected] (Joe Bloggs)"
     out = authorparser.strip_email(email)
     self.assertEqual(out[1], "*****@*****.**")
     self.assertEqual(out[2], " (Joe Bloggs)")