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
0c44a6a3
Commit
0c44a6a3
authored
Jan 13, 2015
by
Jonathan Piacenti
Committed by
Zia Fazal
Apr 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for resource hasher.
parent
39639013
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lms/djangoapps/courseware/tests/test_module_render.py
+8
-0
No files found.
lms/djangoapps/courseware/tests/test_module_render.py
View file @
0c44a6a3
...
...
@@ -198,6 +198,14 @@ class ModuleRenderTestCase(ModuleStoreTestCase, LoginEnrollmentTestCase):
self
.
assertEquals
(
403
,
response
.
status_code
)
self
.
assertEquals
(
'Unauthenticated'
,
response
.
content
)
def
test_hash_resource
(
self
):
"""
Ensure that the resource hasher works and does not fail on unicode,
decoded or otherwise.
"""
resources
=
[
'ASCII text'
,
u'❄ I am a special snowflake.'
,
"❄ So am I, but I didn't tell you."
]
self
.
assertEqual
(
render
.
hash_resource
(
resources
),
'a76e27c8e80ca3efd7ce743093aa59e0'
)
def
test_missing_position_handler
(
self
):
"""
Test that sending POST request without or invalid position argument don't raise server error
...
...
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