def test_find_email_returns_none(self): email = "(Joe Bloggs) John Doe" out = authorparser.find_email(email) self.assertIsNone(out)
def test_find_email(self): email = "[email protected] (Joe Bloggs)" out = authorparser.find_email(email) self.assertEqual(out, "*****@*****.**")