예제 #1
0
def test_install_module_error_with_output():
    error = _errors.InstallModuleError(["python", "-m", "42"],
                                       return_code=42,
                                       output=b"42")

    assert (str(error) == """InstallModuleError:
Command "['python', '-m', '42']"
42""")
예제 #2
0
def test_install_module_error():
    error = _errors.InstallModuleError(['python', '-m', '42'],
                                       return_code=42,
                                       output=b'42')

    assert str(error) == """InstallModuleError:
예제 #3
0
def test_install_module_error():
    error = _errors.InstallModuleError(['python', '-m', '42'], return_code=42)

    assert str(
        error) == 'InstallModuleError:\nCommand "[\'python\', \'-m\', \'42\']"'
예제 #4
0
def test_install_module_error():
    error = _errors.InstallModuleError(["python", "-m", "42"], return_code=42)

    assert str(error) == "InstallModuleError:\nCommand \"['python', '-m', '42']\""