Use JsonResponse when it makes sense

This commit is contained in:
David Baumgold
2013-06-27 12:21:42 -04:00
parent 090d0d4464
commit ef81556cc5
7 changed files with 59 additions and 49 deletions

View File

@@ -117,4 +117,4 @@ class ChecklistTestCase(CourseTestCase):
'name': self.course.location.name,
'checklist_index': 100})
response = self.client.delete(update_url)
self.assertContains(response, 'Unsupported request', status_code=400)
self.assertEqual(response.status_code, 405)