def test_codec_interface(self): codec = VideoCodec('libx264') self.assertEqual(list(codec), ['-vcodec', 'libx264']) codec = AudioCodec('ac3') self.assertEqual(list(codec), ['-acodec', 'ac3'])
def setUp(self): self.codec = VideoCodec('libx264')