eB`ddlmZddlmZddlmZdZdZdZGddeZ d e d ee fd Z y ) ) hasmethod)Matcher)SubstringMatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc6eZdZdfd ZdedefdZdZxZS)StringStartsWithreturnc,tt| |y)N)superr__init__)self substring __class__s H/usr/lib/python3/dist-packages/hamcrest/library/text/stringstartswith.pyr zStringStartsWith.__init__ s .y9itemcRt|dsy|j|jS)N startswithF)rrr )r rs r_matcheszStringStartsWith._matchess"|,t~~..rcy)Nz starting with)r s r relationshipzStringStartsWith.relationshipsr)rN) __name__ __module__ __qualname__r strboolrr __classcell__)rs@rrr s :/S/T/ rrr rct|S)a^Matches if object is a string starting with a given string. :param string: The string to search for. This matcher first checks whether the evaluated object is a string. If so, it checks if ``string`` matches the beginning characters of the evaluated object. Example:: starts_with("foo") will match "foobar". )r)r s r starts_withrs I &&rN) hamcrest.core.helpers.hasmethodrhamcrest.core.matcherr&hamcrest.library.text.substringmatcherr __author__ __copyright__ __license__rrrrrrr&sA5)C  - $  ' '3'73<'r