o (]^Bã@sZddlmZddlmZddlmZdZdZdZGdd„deƒZ d e d ee fd d „Z d S)é)Ú hasmethod)ÚMatcher)ÚSubstringMatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtcs8eZdZd ‡fdd„ Zdedefdd„Zdd „Z‡ZS) ÚStringStartsWithÚreturnNcstt|ƒ |¡dS)N)ÚsuperrÚ__init__)ÚselfÚ substring©Ú __class__©úH/usr/lib/python3/dist-packages/hamcrest/library/text/stringstartswith.pyr szStringStartsWith.__init__ÚitemcCst|dƒsdS| |j¡S)NÚ startswithF)rrr )r rr r rÚ_matchess  zStringStartsWith._matchescCsdS)Nz starting withr )r r r rÚ relationshipszStringStartsWith.relationship)rN) Ú__name__Ú __module__Ú __qualname__rÚstrÚboolrrÚ __classcell__r r r rr srr rcCst|ƒ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 r r rÚ starts_withsrN) Úhamcrest.core.helpers.hasmethodrÚhamcrest.core.matcherrÚ&hamcrest.library.text.substringmatcherrÚ __author__Ú __copyright__Ú __license__rrrr r r rÚs