Commit d6652ff1 authored by Priscila Manhaes's avatar Priscila Manhaes

TYPO

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44823 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c7826be
...@@ -34,7 +34,7 @@ from cloudooo.handler.tests.handlerTestCase import HandlerTestCase, make_suite ...@@ -34,7 +34,7 @@ from cloudooo.handler.tests.handlerTestCase import HandlerTestCase, make_suite
class TestAllSupportedFormat(HandlerTestCase): class TestAllSupportedFormat(HandlerTestCase):
def afterSetUp(self): def afterSetUp(self):
self.data = open("./data/test2.ogv").read() self.data = open("./data/test.ogv").read()
self.kw = dict(env=dict(PATH=self.env_path)) self.kw = dict(env=dict(PATH=self.env_path))
self.input = Handler(self.tmp_url, self.data, "ogv", **self.kw) self.input = Handler(self.tmp_url, self.data, "ogv", **self.kw)
self.file_detector = Magic(mime=True) self.file_detector = Magic(mime=True)
...@@ -97,7 +97,8 @@ class TestAllSupportedFormat(HandlerTestCase): ...@@ -97,7 +97,8 @@ class TestAllSupportedFormat(HandlerTestCase):
"""Test convert file to matroska format the reverse convertion""" """Test convert file to matroska format the reverse convertion"""
mkv_data = self.input.convert("mkv") mkv_data = self.input.convert("mkv")
mkv_mimetype = self.file_detector.from_buffer(mkv_data) mkv_mimetype = self.file_detector.from_buffer(mkv_data)
# XXX This might expect 'video/x-matroska' but magic only got 'application/octet-stream' # XXX This might expect 'video/x-matroska' but magic only got
# 'application/octet-stream'
self.assertEquals(mkv_mimetype, 'application/octet-stream') self.assertEquals(mkv_mimetype, 'application/octet-stream')
ogv_mimetype = self.afterFormat(mkv_data) ogv_mimetype = self.afterFormat(mkv_data)
# XXX This might expect 'video/ogg' but magic only got 'application/ogg' # XXX This might expect 'video/ogg' but magic only got 'application/ogg'
......
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