def test_process_input(self):
    expected = ('%s\n' % self.test_file[:(- 1)])
    self.mock_popen.return_value = [expected, '']
    result = utils.execute(['cat'], process_input=('%s\n' % self.test_file[:(- 1)]))
    self.assertEqual(result, expected)
def test_process_input(self):
    expected = ('%s\n' % self.test_file[:(- 1)])
    self.mock_popen.return_value = [expected, ]
    result = utils.execute(['cat'], process_input=('%s\n' % self.test_file[:(- 1)]))
    self.assertEqual(result, expected)