From 272c3f8e550dd9aec6699a1f5e74f90b1bca53a5 Mon Sep 17 00:00:00 2001 From: Rohan Rangray Date: Sat, 16 May 2015 22:34:45 -0700 Subject: [PATCH] Fixed typo in test_api.py from HTTP_404_NOT_FOUND to HTTP_200_OK --- flashcards/tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashcards/tests/test_api.py b/flashcards/tests/test_api.py index ca230cc..4fa9002 100644 --- a/flashcards/tests/test_api.py +++ b/flashcards/tests/test_api.py @@ -282,7 +282,7 @@ class SectionViewSetTest(APITestCase): def test_section_search(self): response = self.client.get('/api/sections/search/?q=Kramer') - self.assertEqual(response.status_code, HTTP_404_NOT_FOUND) + self.assertEqual(response.status_code, HTTP_200_OK) def test_section_deck(self): self.user.sections.add(self.section) -- 1.9.1