Add __str__ method to ExpectedRequest

Better for reading test logs.
This commit is contained in:
Daniel Schadt 2015-11-19 00:30:16 +01:00
parent 4060fd5e90
commit 452c6f5310

View File

@ -117,6 +117,11 @@ class ExpectedRequest:
else:
return NotImplemented
def __str__(self):
return '<ExpectedRequest {} "{}">'.format(self.verb, self.path)
__repr__ = __str__
class HTTPBin(testprocess.Process):