def test_replace_original(self, ecmd): processor = FileProcessor('another-input.mkv', None, 'roku') # Replace original, make sure output is updated processor.replace_original() cmd = ['mv', 'tmp.mkv', 'another-input.mkv'] ecmd.assert_called_once_with(cmd) self.assertEqual(processor.output, 'another-input.mkv')