'# Test that importing course with unicode \'id\' and \'display name\' doesn\'t give UnicodeEncodeError'

def test_unicode_chars_in_course_name_import(self):

    with modulestore().default_store(ModuleStoreEnum.Type.split):
        module_store = modulestore()
        course_id = module_store.make_course_key(u'\u042e\u043d\u0438\u043a\u043e\u0434\u0430', u'unicode_course', u'\xe9chantillon')
        import_course_from_xml(module_store, self.user.id, TEST_DATA_DIR, ['2014_Uni'], target_id=course_id, create_if_not_present=True)
        course = module_store.get_course(course_id)
        self.assertIsNotNone(course)
        self.assertEqual(course.display_name, u'\u03a6\u03c5\u03c3\u03b9\u03ba\u03ac    \u03c4\u03bf    \u03cc\u03bd\u03bf\u03bc\u03b1    Unicode')
