예제 #1
0
 def assert_finds_email(text, email=None):
     if email is None:
         email = text
     match = email_regex.search(text)
     assert match
     user, domain = match.groups()
     assert '%s@%s' % (user, domain) == email
예제 #2
0
 def assert_finds_email(text, email=None):
     if email is None:
         email = text
     match = email_regex.search(text)
     assert match
     user, domain = match.groups()
     assert '%s@%s' % (user, domain) == email
예제 #3
0
 def assert_no_email(text):
     assert not email_regex.search(text)
예제 #4
0
 def assert_no_email(text):
     assert not email_regex.search(text)