Skip to content

Commit

Permalink
remove failing (now moot) list view test
Browse files Browse the repository at this point in the history
  • Loading branch information
hjwp committed Apr 30, 2016
1 parent 43c9bc7 commit 96b3f9f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lists/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,22 +134,6 @@ def test_displays_item_form(self):
self.assertContains(response, 'name="text"')


def test_displays_only_items_for_that_list(self):
correct_list = List.objects.create()
Item.objects.create(text='itemey 1', list=correct_list)
Item.objects.create(text='itemey 2', list=correct_list)
other_list = List.objects.create()
Item.objects.create(text='other list item 1', list=other_list)
Item.objects.create(text='other list item 2', list=other_list)

response = self.client.get('/lists/%d/' % (correct_list.id,))

self.assertContains(response, 'itemey 1')
self.assertContains(response, 'itemey 2')
self.assertNotContains(response, 'other list item 1')
self.assertNotContains(response, 'other list item 2')


def test_can_save_a_POST_request_to_an_existing_list(self):
other_list = List.objects.create()
correct_list = List.objects.create()
Expand Down

0 comments on commit 96b3f9f

Please sign in to comment.