Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
761590bc
Commit
761590bc
authored
Sep 24, 2013
by
Usman Khalid
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1053 from edx/usman/static-book-url
Added missing test in StaticImageBookTest
parents
3ca74c01
3c3edac0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lms/djangoapps/staticbook/tests.py
+6
-0
No files found.
lms/djangoapps/staticbook/tests.py
View file @
761590bc
...
@@ -105,6 +105,12 @@ class StaticImageBookTest(StaticBookTest):
...
@@ -105,6 +105,12 @@ class StaticImageBookTest(StaticBookTest):
response
=
self
.
client
.
get
(
url
)
response
=
self
.
client
.
get
(
url
)
self
.
assertEqual
(
response
.
status_code
,
404
)
self
.
assertEqual
(
response
.
status_code
,
404
)
def
test_bad_page_id
(
self
):
# A bad page id will cause a 404.
self
.
make_course
(
textbooks
=
[
IMAGE_BOOK
])
with
self
.
assertRaises
(
NoReverseMatch
):
self
.
make_url
(
'book'
,
book_index
=
0
,
page
=
'xyzzy'
)
class
StaticPdfBookTest
(
StaticBookTest
):
class
StaticPdfBookTest
(
StaticBookTest
):
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment