e'`ddlmZddlmZddlmZdZdZdZGddeZ d e d ee fd Z y ) ) hasmethod)Matcher)SubstringMatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc6eZdZdfd ZdedefdZdZxZS)StringEndsWithreturnc,tt| |y)N)superr__init__)self substring __class__s F/usr/lib/python3/dist-packages/hamcrest/library/text/stringendswith.pyr zStringEndsWith.__init__ s nd,Y7itemcRt|dsy|j|jS)NendswithF)rrr )r rs r_matcheszStringEndsWith._matchess"z*}}T^^,,rcy)Nz ending with)r s r relationshipzStringEndsWith.relationshipsr)rN) __name__ __module__ __qualname__r strboolrr __classcell__)rs@rrr s 8-S-T- rrstringrct|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)rs r ends_withr s & !!rN) hamcrest.core.helpers.hasmethodrhamcrest.core.matcherr&hamcrest.library.text.substringmatcherr __author__ __copyright__ __license__rrr rrrr'sA5)C  - $  % "c"gcl"r