def test_should_process_input(self): _input = StringIO() _input.write('Test.') _output = StringIO() babel = BabelFilter() babel.input(_input, _output) self.assertEqual(_output.getvalue(), 'Test.')
def test_get_executable_list(self): babel = BabelFilter() self.assertEqual(babel.get_executable_list('input', 'output'), ['babel', 'input', '-o', 'output'])