Checks whether one string starts with another.
Method __init__ Create a StartsWith 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, expected):
Create a StartsWith Matcher.
Parametersexpectedthe string that matchees should start with.
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.