Add reason attribute to TestResponse

The tests are currently failing due to a missing attribute 'reason' in
the TestResponse object.

Change-Id: Ib229c3d2807634d9670d91e271611b207a504266
Closes-Bug: 1613740
This commit is contained in:
Rob Cresswell
2016-08-16 15:29:11 +01:00
parent 6c8a1d49a8
commit 806dbaef90

View File

@@ -35,6 +35,7 @@ class TestResponse(requests.Response):
It also provides some convenience to initialize with a dict.
"""
reason = ''
def __init__(self, data):
self._text = None