diff options
author | woodnt <woodm1979@gmail.com> | 2016-09-08 14:14:28 -0600 |
---|---|---|
committer | Rob Cresswell <robert.cresswell@outlook.com> | 2016-09-19 12:16:26 +0000 |
commit | 83a7c972712d1171bf3f313f6826abb1adcd8059 (patch) | |
tree | 224c8ea8d360fdc1772007340fa31def42737cc9 | |
parent | 39148145e2a9e81bf05827c897868d1a0953f40d (diff) | |
download | django_openstack_auth-stable/mitaka.tar.gz |
Correctly initialize TestResponsesmitaka-eolstable/mitaka
There's a pretty awful hack currently in place to add the reason
attribute to the TestResponse class. This code correctly initializes
the class, including the reason attribute.
Change-Id: I73384db1f89add051547f4d5db36ab1e647e84ef
Closes-Bug: 1613740
(cherry picked from commit 2c859f1d6d620725ddd99c21d75abfec6eec1552)
-rw-r--r-- | openstack_auth/tests/data_v3.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_auth/tests/data_v3.py b/openstack_auth/tests/data_v3.py index e3c3f8c..1282a23 100644 --- a/openstack_auth/tests/data_v3.py +++ b/openstack_auth/tests/data_v3.py @@ -37,7 +37,7 @@ class TestResponse(requests.Response): def __init__(self, data): self._text = None - super(TestResponse, self) + super(TestResponse, self).__init__() if isinstance(data, dict): self.status_code = data.get('status_code', 200) self.headers = data.get('headers', None) |