

def test_get_sandbox_path(self):
    old_path = os.environ.get('PATH', '')
    os.environ['PATH'] = '/home/path1:/home/path2:/home/path3:'
    virtualenv_path = '/home/venv/test'
    result = get_sandbox_path(virtualenv_path=virtualenv_path)
    self.assertEqual(result, '/home/venv/test/bin/:/home/path1:/home/path2:/home/path3')
    os.environ['PATH'] = virtualenv_path

dataset/ETHPy150Open StackStorm/st2/st2common/tests/unit/test_util_sandboxing.py SandboxingUtilsTestCase.test_get_sandbox_path/VarMisuse@61/131 `old_path`->`virtualenv_path`