eddlZddlmZmZddlmZddlmZddlm Z dZ dZ dZ Gd d ee Zd ee ee fd e e fd Zy)N)PatternUnion) BaseMatcher) Description)Matcherz Chris RosezCopyright 2011 hamcrest.orgzBSD, see License.txtc4eZdZddZdeddfdZdedefdZy) StringMatchesPatternreturnNc||_yNpattern)selfrs E/usr/lib/python3/dist-packages/hamcrest/library/text/stringmatches.py__init__zStringMatchesPattern.__init__s  descriptionc|jdj|jjjdy)Nza string matching '') append_textr)rrs r describe_toz StringMatchesPattern.describe_tos3 56BB LL  +c ritemc<|jj|duSr )rsearch)rrs r_matcheszStringMatchesPattern._matchess||""4(44r)r N) __name__ __module__ __qualname__rrrstrboolrrrr r s-{t 5S5T5rr rr cbt|trtj|}t |S)aKMatches if object is a string containing a match for a given regular expression. :param pattern: The regular expression to search for. This matcher first checks whether the evaluated object is a string. If so, it checks if the regular expression ``pattern`` matches anywhere within the evaluated object. ) isinstancerrecompiler r s rmatches_regexpr&s''3**W%  ((r)r$typingrrhamcrest.core.base_matcherrhamcrest.core.descriptionrhamcrest.core.matcherr __author__ __copyright__ __license__rr r&r!rrr.sY !21)  - $  5;s+ 5)E#ws|"34))r