From b0627efc74d0d46abed3d39258cc792e0601ce2e Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Fri, 17 Aug 2012 09:23:37 -0400 Subject: [PATCH] Fix the tests of the book url --- lms/djangoapps/courseware/tests/tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/tests/tests.py b/lms/djangoapps/courseware/tests/tests.py index 22a65267c9..da518f45b7 100644 --- a/lms/djangoapps/courseware/tests/tests.py +++ b/lms/djangoapps/courseware/tests/tests.py @@ -388,7 +388,11 @@ class TestViewAuth(PageLoader): list of urls that students should be able to see only after launch, but staff should see before """ - urls = reverse_urls(['info', 'book', 'courseware', 'profile'], course) + urls = reverse_urls(['info', 'courseware', 'profile'], course) + urls.extend([ + reverse('book', kwargs={'course_id': course.id, 'book_index': book.title}) + for book in course.textbooks + ]) return urls def light_student_urls(course):