Change a test to get at some Unicode issues.

This commit is contained in:
Ned Batchelder
2013-06-07 09:57:51 -04:00
parent d4db4c6dea
commit ccaf8178fd

View File

@@ -66,7 +66,8 @@ class ImportTestCase(BaseCourseTestCase):
def test_fallback(self):
'''Check that malformed xml loads as an ErrorDescriptor.'''
bad_xml = '''<sequential display_name="oops"><video url="hi"></sequential>'''
# Use an exotic character to also flush out Unicode issues.
bad_xml = u'''<sequential display_name="oops\N{SNOWMAN}"><video url="hi"></sequential>'''
system = self.get_system()
descriptor = system.process_xml(bad_xml)