From 889c3c1048a71ea916dd416ac92311d33be44ee8 Mon Sep 17 00:00:00 2001 From: Andrew Buss Date: Wed, 20 May 2015 17:20:05 -0700 Subject: [PATCH] tests were wrong --- 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 6d3d02c..30d9ce8 100644 --- a/flashcards/tests/test_api.py +++ b/flashcards/tests/test_api.py @@ -357,7 +357,7 @@ class SectionViewSetTest(APITestCase): mask=None).save() response = self.client.get('/api/sections/{}/feed/'.format(self.section.pk)) self.assertEqual(response.status_code, HTTP_200_OK) - self.assertEqual(response.data[0]['id'], 1) + self.assertEqual(response.data[1]['id'], 1) self.flashcard.hide_from(self.user) response = self.client.get('/api/sections/{}/feed/'.format(self.section.pk)) self.assertEqual(response.status_code, HTTP_200_OK) -- 1.9.1