Fixes issue #85. Also moves all json imports to go through oauth2client.anyjson. Reviewed in http://codereview.appspot.com/5531064/.
diff --git a/tests/test_oauth2client.py b/tests/test_oauth2client.py
index 8286eed..dfcbf72 100644
--- a/tests/test_oauth2client.py
+++ b/tests/test_oauth2client.py
@@ -33,17 +33,8 @@
except ImportError:
from cgi import parse_qs
-try: # pragma: no cover
- import simplejson
-except ImportError: # pragma: no cover
- try:
- # Try to import from django, should work on App Engine
- from django.utils import simplejson
- except ImportError:
- # Should work for Python2.6 and higher.
- import json as simplejson
-
from apiclient.http import HttpMockSequence
+from oauth2client.anyjson import simplejson
from oauth2client.client import AccessTokenCredentials
from oauth2client.client import AccessTokenCredentialsError
from oauth2client.client import AccessTokenRefreshError