Commit c265e632 authored by Priscila Manhaes's avatar Priscila Manhaes

ajust ffmpeg test for recognizing expected file format, but it still breaking without right codec

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@43571 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0eefa7c0
......@@ -27,7 +27,7 @@
##############################################################################
import unittest
import sha
import magic
from cloudooo.handler.ffmpeg.handler import FFMPEGHandler
from cloudooo.handler.tests.handlerTestCase import HandlerTestCase
......@@ -40,13 +40,10 @@ class TestFFMPEGHandler(HandlerTestCase):
def testConvertVideo(self):
"""Test coversion of video to another format"""
# XXX - Hash might use md5, but it does not work for string
input_data = sha.new(self.data)
hash_input = input_data.digest()
file_detector = magic.Magic()
output_data = self.input.convert("ogv")
output = sha.new(output_data)
hash_output = output.digest()
self.assertTrue(hash_input != hash_output)
file_format = file_detector.from_buffer(output_data)
self.assertEqual(file_format, 'Ogg data, Theora video')
def test_suite():
......
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