Commit 4e2aca0d authored by Priscila Manhaes's avatar Priscila Manhaes

refactor to fix bug of ffmpeg with webm format

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45441 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5e448eea
......@@ -60,7 +60,7 @@ class TestAllSupportedFormat(HandlerTestCase):
def testWebMFormat(self):
"""Test convert file to WebM format and the reverse convertion"""
webm_mimetype, ogv_mimetype = self.runTestForType("webm")
self.assertEquals(webm_data, 'video/webm')
self.assertEquals(webm_mimetype, 'video/webm')
# XXX This might expect 'video/ogg' but magic only got 'application/ogg'
self.assertEquals(ogv_mimetype, 'application/ogg')
......
......@@ -52,7 +52,12 @@ class TestHandler(HandlerTestCase):
def testsetMetadata(self):
""" Test if metadata are inserted correclty """
self.assertRaises(NotImplementedError, self.input.setMetadata)
metadata_dict = {"title": "Set Metadata Test", "creator": "cloudooo"}
output = self.input.setMetadata(metadata_dict)
handler = Handler(self.tmp_url, output, "ogv", **self.kw)
metadata = Handler.getMetadata()
self.assertEquals(metadata["title"], "Set Metadata Test")
self.assertEquals(metadata["creator"], "cloudooo")
def testConvertAudio(self):
"""Test coversion of audio to another format"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment