def test_correct(self): e = fix_email("*****@*****.**") self.assertEqual(e, "*****@*****.**")
def test_none(self): old = None new = fix_email(old) self.assertEqual(old, new)
def test_empty(self): old = "" new = fix_email(old) self.assertEqual(old, new)
def test_partial(self): e = fix_email("psytp") self.assertEqual(e, "*****@*****.**")