Created
August 19, 2012 09:50
-
-
Save mrchilds/3394025 to your computer and use it in GitHub Desktop.
Django Unit Test - Ajax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.utils import simplejson | |
#Go to a url | |
response = self.client.get(self.url) | |
foobar = simplejson.loads(response.content) | |
print foorbar['item'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment