Skip to content

Instantly share code, notes, and snippets.

@mrchilds
Created August 19, 2012 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchilds/3394025 to your computer and use it in GitHub Desktop.
Save mrchilds/3394025 to your computer and use it in GitHub Desktop.
Django Unit Test - Ajax
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