Fix the tests of the book url

This commit is contained in:
Calen Pennington
2012-08-17 09:23:37 -04:00
parent 427c400f9e
commit b0627efc74

View File

@@ -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):