Checks whether something is contained in another thing.
Method __init__ Create a Contains Matcher.
Method __str__ Get a sensible human representation of the matcher.
Method match Return None if this matcher matches something, a Mismatch otherwise.
def __init__(self, needle):
Create a Contains Matcher.
Parametersneedlethe thing that needs to be contained by matchees.
def __str__(self):

Get a sensible human representation of the matcher.

This should include the parameters given to the matcher and any state that would affect the matches operation.

def match(self, matchee):
Return None if this matcher matches something, a Mismatch otherwise.
API Documentation for testtools, generated by pydoctor at 2015-07-01 16:11:28.