Exemplo n.º 1
0
def test_load_stdout_exists():
    ife = get_install_front_end('stdout')
    assert hasattr(ife, "install")
Exemplo n.º 2
0
def test_load_raise_import_error_if_not_available_name():
    with pytest.raises(ImportError):
        get_install_front_end("takapouet")
Exemplo n.º 3
0
def test_load_pip_exists():
    ife = get_install_front_end('pip')
    assert hasattr(ife, "install")
Exemplo n.º 4
0
def test_load_stdout_exists():
    ife = get_install_front_end('stdout')
    assert hasattr(ife, "install")
Exemplo n.º 5
0
def test_load_raise_import_error_if_not_available_name():
    assert_raises(ImportError, lambda: get_install_front_end("takapouet"))
Exemplo n.º 6
0
def test_load_pip_exists():
    ife = get_install_front_end('pip')
    assert hasattr(ife, "install")