o (]^'ã@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) ÚStringEndsWithÚreturnNcstt|ƒ |¡dS)N)ÚsuperrÚ__init__)ÚselfÚ substring©Ú __class__©úF/usr/lib/python3/dist-packages/hamcrest/library/text/stringendswith.pyr szStringEndsWith.__init__ÚitemcCst|dƒsdS| |j¡S)NÚendswithF)rrr )r rr r rÚ_matchess  zStringEndsWith._matchescCsdS)Nz ending withr )r r r rÚ relationshipszStringEndsWith.relationship)rN) Ú__name__Ú __module__Ú __qualname__rÚstrÚboolrrÚ __classcell__r r r rr srÚstringrcCst|ƒS)aWMatches if object is a string ending 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 ending characters of the evaluated object. Example:: ends_with("bar") will match "foobar". )r)rr r rÚ ends_withsrN) Úhamcrest.core.helpers.hasmethodrÚhamcrest.core.matcherrÚ&hamcrest.library.text.substringmatcherrÚ __author__Ú __copyright__Ú __license__rrrr r r rÚs