BOM-910
There was in issue coming in order of error msg. fixing bytes issue also.
This commit is contained in:
@@ -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(
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user