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_jwt.py b/tests/test_oauth2client_jwt.py
index 01a7331..50dab5a 100644
--- a/tests/test_oauth2client_jwt.py
+++ b/tests/test_oauth2client_jwt.py
@@ -34,21 +34,12 @@
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 import crypt
+from oauth2client.anyjson import simplejson
from oauth2client.client import SignedJwtAssertionCredentials
-from oauth2client.client import verify_id_token
from oauth2client.client import VerifyJwtTokenError
+from oauth2client.client import verify_id_token
def datafile(filename):