def test_find_email(self): # Assert e-mail finder with common e-mail notations. s = "*****@*****.**" v = web.find_email("("+s+".") self.assertEqual(v[0], s) # Assert several matches in string. s = ["*****@*****.**", "*****@*****.**"] v = web.find_email("("+",".join(s)+")") self.assertEqual(v, s) print "pattern.web.find_email()"