예제 #1
0
def test_shellescape_relpath_longer(tmpdir):
    tmpdir.chdir()
    path = Path('/a/b')
    args = (path.strpath, )
    assert venv_update.shellescape(args) == path.strpath
예제 #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
예제 #3
0
def test_shellescape(args, expected):
    assert venv_update.shellescape(args) == expected
예제 #4
0
def test_shellescape_relpath_longer(tmpdir):
    tmpdir.chdir()
    path = Path('/a/b')
    args = (path.strpath,)
    assert venv_update.shellescape(args) == path.strpath
예제 #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
예제 #6
0
def test_shellescape(args, expected):
    assert venv_update.shellescape(args) == expected