def test_execute_raises(self):
    self.mock_popen.side_effect = RuntimeError
    self.assertRaises(RuntimeError, utils.execute, ['ls', self.test_file[:(- 1)]])
def test_execute_raises(self):
    self.mock_popen.side_effect = RuntimeError
    self.assertRaises(RuntimeError, utils.execute, ['ls', self.test_file[:(- 1)]])