示例#1
0
文件: test_web.py 项目: daeon/pattern
 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()"
示例#2
0
 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()"