File size: 419 Bytes
8f59bb3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | from django.test import TestCase
from .factories import EncodeProfileFactory
class EncodeProfileTests(TestCase):
"""
Test the EncodeProfile model.
"""
def setUp(self):
self.profile = EncodeProfileFactory()
def test_shell_command(self):
cmd = self.profile.shell_command('/dir/from', '/dir/to')
self.assertEqual(cmd, ['ffmpeg', '-y', '-i', '/dir/from', '-vn', '/dir/to'])
|