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) ÚStringContainsÚreturnNcstt|ƒ |¡dS)N)ÚsuperrÚ__init__)ÚselfÚ substring©Ú __class__©úF/usr/lib/python3/dist-packages/hamcrest/library/text/stringcontains.pyr szStringContains.__init__ÚitemcCst|dƒsdS| |j¡dkS)NÚfindFr)rrr )r rr r rÚ_matchess zStringContains._matchescCsdS)NÚ containingr )r r r rÚ relationshipszStringContains.relationship)rN) Ú__name__Ú __module__Ú __qualname__rÚstrÚboolrrÚ __classcell__r r r rr srr rcCst|ƒS)a4Matches if object is a string containing 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 whether it contains ``string``. Example:: contains_string("def") will match "abcdefg". )r)r r r rÚcontains_stringsrN) Úhamcrest.core.helpers.hasmethodrÚhamcrest.core.matcherrÚ&hamcrest.library.text.substringmatcherrÚ __author__Ú __copyright__Ú __license__rrrr r r rÚs