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
65d45d6d
Commit
65d45d6d
authored
Jan 16, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup.
parent
07d6bee5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
cms/djangoapps/contentstore/tests/test_core_caching.py
+6
-3
No files found.
cms/djangoapps/contentstore/tests/test_core_caching.py
View file @
65d45d6d
...
...
@@ -22,14 +22,17 @@ class CachingTestCase(TestCase):
set_cached_content
(
self
.
mockAsset
)
self
.
assertEqual
(
self
.
mockAsset
.
content
,
get_cached_content
(
self
.
unicodeLocation
)
.
content
,
'should be stored in cache with unicodeLocation'
)
self
.
assertEqual
(
self
.
mockAsset
.
content
,
get_cached_content
(
Location
(
'c4x'
,
u'mitX'
,
u'800'
,
'thumbnail'
,
'monsters.jpg'
)
)
.
content
,
self
.
assertEqual
(
self
.
mockAsset
.
content
,
get_cached_content
(
self
.
nonUnicodeLocation
)
.
content
,
'should be stored in cache with nonUnicodeLocation'
)
def
test_delete
(
self
):
set_cached_content
(
self
.
mockAsset
)
del_cached_content
(
self
.
nonUnicodeLocation
)
self
.
assertEqual
(
None
,
get_cached_content
(
self
.
nonUnicodeLocation
),
'should not be stored in cache with nonUnicodeLocation'
)
self
.
assertEqual
(
None
,
get_cached_content
(
self
.
unicodeLocation
),
'should not be stored in cache with unicodeLocation'
)
self
.
assertEqual
(
None
,
get_cached_content
(
self
.
unicodeLocation
),
'should not be stored in cache with unicodeLocation'
)
self
.
assertEqual
(
None
,
get_cached_content
(
self
.
nonUnicodeLocation
),
'should not be stored in cache with nonUnicodeLocation'
)
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