From 452c6f5310b49e13839a26c1cdfb67579d57b7d5 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 19 Nov 2015 00:30:16 +0100 Subject: [PATCH] Add __str__ method to ExpectedRequest Better for reading test logs. --- tests/integration/webserver.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration/webserver.py b/tests/integration/webserver.py index fa8ba0a88..a27d7d185 100644 --- a/tests/integration/webserver.py +++ b/tests/integration/webserver.py @@ -117,6 +117,11 @@ class ExpectedRequest: else: return NotImplemented + def __str__(self): + return ''.format(self.verb, self.path) + + __repr__ = __str__ + class HTTPBin(testprocess.Process):