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
547f4633
Commit
547f4633
authored
Jul 12, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use better syntax for asserting that exception is thrown
parent
ab4012cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
common/lib/xmodule/xmodule/tests/test_xml_module.py
+2
-4
No files found.
common/lib/xmodule/xmodule/tests/test_xml_module.py
View file @
547f4633
...
...
@@ -203,11 +203,9 @@ class TestSerialize(unittest.TestCase):
assert_equals
(
'1 day 12 hours 59 minutes 59 seconds'
,
serialize_string_literal
(
"1 day 12 hours 59 minutes 59 seconds"
))
try
:
# make sure we can't call serialize_string_literal with a non basestring type
with
self
.
assertRaises
(
TypeError
):
self
.
assertRaises
(
serialize_string_literal
(
2.31
))
except
Exception
:
pass
class
TestDeserialize
(
unittest
.
TestCase
):
def
assertDeserializeEqual
(
self
,
expected
,
arg
):
...
...
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