示例#1
0
 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_should_process_input(self):
     _input = StringIO()
     _input.write('Test.')
     _output = StringIO()
     babel = BabelFilter()
     babel.input(_input, _output)
     self.assertEqual(_output.getvalue(), 'Test.')
示例#3
0
 def test_get_executable_list(self):
     babel = BabelFilter()
     self.assertEqual(babel.get_executable_list('input', 'output'),
                      ['babel', 'input', '-o', 'output'])
 def test_get_executable_list(self):
     babel = BabelFilter()
     self.assertEqual(babel.get_executable_list('input', 'output'),
                      ['babel', 'input', '-o', 'output'])