Skip to content
Snippets Groups Projects
Unverified Commit f07fae6e authored by Awais Qureshi's avatar Awais Qureshi Committed by GitHub
Browse files

Merge pull request #21989 from edx/awais786/BOM-910

BOM-910
parents df0f6010 4470a1b4
No related branches found
No related tags found
No related merge requests found
......@@ -827,7 +827,7 @@ class VideoExportTestCase(VideoBlockTestBase):
self.descriptor.transcripts = None
xml = self.descriptor.definition_to_xml(self.file_system)
expected = '<video url_name="SampleProblem"/>\n'
self.assertEquals(expected, etree.tostring(xml, pretty_print=True))
self.assertEquals(expected, etree.tostring(xml, pretty_print=True).decode('utf-8'))
@patch('xmodule.video_module.video_module.edxval_api', None)
def test_export_to_xml_invalid_characters_in_attributes(self):
......@@ -1171,7 +1171,9 @@ class VideoBlockIndexingTestCase(unittest.TestCase):
self.assertFalse(validation.empty) # Validation contains some warning/message
self.assertTrue(validation.summary)
self.assertEqual(StudioValidationMessage.WARNING, validation.summary.type)
self.assertIn(expected_msg, validation.summary.text)
self.assertIn(
expected_msg, validation.summary.text.replace('Urdu, Esperanto', 'Esperanto, Urdu')
)
@ddt.data(
(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment