Example #1
0
def test_shellescape_relpath_longer(tmpdir):
    tmpdir.chdir()
    path = Path('/a/b')
    args = (path.strpath, )
    assert venv_update.shellescape(args) == path.strpath
Example #2
0
def test_shellescape_relpath(path, expected, tmpdir):
    tmpdir.chdir()
    tmpfile = tmpdir.join(path)
    args = (tmpfile.strpath, )
    assert venv_update.shellescape(args) == expected
    assert expected != tmpfile.strpath
Example #3
0
def test_shellescape(args, expected):
    assert venv_update.shellescape(args) == expected
Example #4
0
def test_shellescape_relpath_longer(tmpdir):
    tmpdir.chdir()
    path = Path('/a/b')
    args = (path.strpath,)
    assert venv_update.shellescape(args) == path.strpath
Example #5
0
def test_shellescape_relpath(path, expected, tmpdir):
    tmpdir.chdir()
    tmpfile = tmpdir.join(path)
    args = (tmpfile.strpath,)
    assert venv_update.shellescape(args) == expected
    assert expected != tmpfile.strpath
Example #6
0
def test_shellescape(args, expected):
    assert venv_update.shellescape(args) == expected