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
041d28f0
Commit
041d28f0
authored
Feb 21, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use better variable names to assert that the expected item was indeed loaded
parent
bb75a231
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
cms/djangoapps/contentstore/tests/test_contentstore.py
+5
-4
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
041d28f0
...
@@ -425,14 +425,15 @@ class ContentStoreTest(ModuleStoreTestCase):
...
@@ -425,14 +425,15 @@ class ContentStoreTest(ModuleStoreTestCase):
def
test_import_metadata_with_attempts_empty_string
(
self
):
def
test_import_metadata_with_attempts_empty_string
(
self
):
import_from_xml
(
modulestore
(),
'common/test/data/'
,
[
'simple'
])
import_from_xml
(
modulestore
(),
'common/test/data/'
,
[
'simple'
])
ms
=
modulestore
(
'direct'
)
ms
=
modulestore
(
'direct'
)
asserted
=
False
did_load_item
=
False
try
:
try
:
effort
=
ms
.
get_item
(
Location
([
'i4x'
,
'edX'
,
'simple'
,
'problem'
,
'ps01-simple'
,
None
]))
ms
.
get_item
(
Location
([
'i4x'
,
'edX'
,
'simple'
,
'problem'
,
'ps01-simple'
,
None
]))
did_load_item
=
True
except
ItemNotFoundError
:
except
ItemNotFoundError
:
asserted
=
True
pass
# make sure we found the item (e.g. it didn't error while loading)
# make sure we found the item (e.g. it didn't error while loading)
self
.
assert
False
(
asserted
)
self
.
assert
True
(
did_load_item
)
def
test_metadata_inheritance
(
self
):
def
test_metadata_inheritance
(
self
):
import_from_xml
(
modulestore
(),
'common/test/data/'
,
[
'full'
])
import_from_xml
(
modulestore
(),
'common/test/data/'
,
[
'full'
])
...
...
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