diff --git a/catalog/tests/test_views.py b/catalog/tests/test_views.py index d93ff2d6..30270dbb 100644 --- a/catalog/tests/test_views.py +++ b/catalog/tests/test_views.py @@ -147,9 +147,9 @@ def test_only_borrowed_books_in_list(self): self.assertTrue('bookinstance_list' in response.context) # Confirm all books belong to testuser1 and are on loan - for bookitem in response.context['bookinstance_list']: - self.assertEqual(response.context['user'], bookitem.borrower) - self.assertEqual(bookitem.status, 'o') + for book_item in response.context['bookinstance_list']: + self.assertEqual(response.context['user'], book_item.borrower) + self.assertEqual(book_item.status, 'o') def test_pages_paginated_to_ten(self):