diff --git a/test_auth_token_middleware.py b/test_auth_token_middleware.py index 2329b18..39bc0ff 100644 --- a/test_auth_token_middleware.py +++ b/test_auth_token_middleware.py @@ -158,7 +158,7 @@ class TimezoneFixture(fixtures.Fixture): def __init__(self, new_tz): super(TimezoneFixture, self).__init__() self.tz = new_tz - self.old_tz = os.environ.get('TZ', None) + self.old_tz = os.environ.get('TZ') def setUp(self): super(TimezoneFixture, self).setUp() diff --git a/utils.py b/utils.py index 3256dd3..d973399 100644 --- a/utils.py +++ b/utils.py @@ -134,7 +134,7 @@ class TestResponse(requests.Response): self.headers.update(headers) # Fake the text attribute to streamline Response creation # _content is defined by requests.Response - self._content = data.get('text', None) + self._content = data.get('text') else: self.status_code = data diff --git a/v2_0/fakes.py b/v2_0/fakes.py index c8de539..214ea71 100644 --- a/v2_0/fakes.py +++ b/v2_0/fakes.py @@ -48,7 +48,7 @@ class FakeHTTPClient(fakes.FakeClient): (method, url, callback)) # Note the call - self.callstack.append((method, url, kwargs.get('body', None))) + self.callstack.append((method, url, kwargs.get('body'))) if not hasattr(self, callback): raise AssertionError('Called unknown API method: %s %s, ' @@ -56,7 +56,7 @@ class FakeHTTPClient(fakes.FakeClient): (method, url, callback)) # Note the call - self.callstack.append((method, url, kwargs.get('body', None))) + self.callstack.append((method, url, kwargs.get('body'))) status, body = getattr(self, callback)(**kwargs) r = utils.TestResponse({