Last active
November 21, 2016 07:17
-
-
Save essanpupil/25cd4ea79cc4b1404f47a0ddb511241e to your computer and use it in GitHub Desktop.
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
| # taken from http://ericholscher.com/blog/2009/apr/16/testing-ajax-views-django/ | |
| response = self.client.post('/ratings/vote/', {'value': '1',}, HTTP_X_REQUESTED_WITH='XMLHttpRequest') | |
| self.assertEqual(200, response.status_code) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment