Integrate with the updated VAL api utils.

This commit is contained in:
Qubad786
2018-02-14 19:23:04 +05:00
parent 15e07d7cc5
commit c90aa33cb8
13 changed files with 89 additions and 90 deletions

View File

@@ -647,9 +647,9 @@ class TestTranscript(unittest.TestCase):
"""
Tests that the srt transcript is successfully converted into sjson format.
"""
expected = json.loads(self.sjson_transcript)
expected = self.sjson_transcript
actual = transcripts_utils.Transcript.convert(self.srt_transcript, 'srt', 'sjson')
self.assertDictEqual(actual, expected)
self.assertDictEqual(json.loads(actual), json.loads(expected))
def test_convert_invalid_srt_to_sjson(self):
"""