Skip to content

Commit e0780f2

Browse files
authored
Fix up test to match docs change (#152)
1 parent 4aaa260 commit e0780f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

catalog/tests/test_views.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ def test_only_borrowed_books_in_list(self):
147147
self.assertTrue('bookinstance_list' in response.context)
148148

149149
# Confirm all books belong to testuser1 and are on loan
150-
for bookitem in response.context['bookinstance_list']:
151-
self.assertEqual(response.context['user'], bookitem.borrower)
152-
self.assertEqual(bookitem.status, 'o')
150+
for book_item in response.context['bookinstance_list']:
151+
self.assertEqual(response.context['user'], book_item.borrower)
152+
self.assertEqual(book_item.status, 'o')
153153

154154
def test_pages_paginated_to_ten(self):
155155

0 commit comments

Comments
 (0)