From 0078035a0e04cb26581cb7e2f01ba0641f962278 Mon Sep 17 00:00:00 2001 From: Patrick Costello Date: Wed, 1 Jul 2015 11:00:03 -0400 Subject: [PATCH] Make test_oauth2client not executable so it runs with nose. Also corrects a change which failed on py26. --- tests/test_oauth2client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 tests/test_oauth2client.py diff --git a/tests/test_oauth2client.py b/tests/test_oauth2client.py old mode 100755 new mode 100644 index 608e8db..49cbdb4 --- a/tests/test_oauth2client.py +++ b/tests/test_oauth2client.py @@ -154,7 +154,7 @@ def mock_module_import(module): entries = ['.'.join(parts[:i+1]) for i in range(len(parts))] for entry in entries: sys.modules[entry] = object() - + try: yield @@ -1051,7 +1051,7 @@ class OAuth2WebServerFlowTest(unittest.TestCase): # Did we pass the Authorization header? self.assertEqual(test_request['headers']['Authorization'], auth_header) # Did we omit client_secret from POST body? - self.assertNotIn('client_secret', test_request['body']) + self.assertTrue('client_secret' not in test_request['body']) def test_urlencoded_exchange_success(self): http = HttpMockSequence([