Make test_oauth2client not executable so it runs with nose. Also corrects a change which failed on py26.

This commit is contained in:
Patrick Costello
2015-07-01 11:00:03 -04:00
parent c47dcd7f66
commit 0078035a0e

4
tests/test_oauth2client.py Executable file → Normal file
View File

@@ -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([