def assert_match(pattern, string, msg=None):
 assert_not_none(re.search(pattern, string), msg)

def assert_match ( pattern , string , msg = None ) : assert_not_none ( re . search ( pattern , string ) , msg )
verify that the pattern matches the string .