Пример #1
0
def test_load_stdout_exists():
    ife = get_install_front_end('stdout')
    assert hasattr(ife, "install")
Пример #2
0
def test_load_raise_import_error_if_not_available_name():
    with pytest.raises(ImportError):
        get_install_front_end("takapouet")
Пример #3
0
def test_load_pip_exists():
    ife = get_install_front_end('pip')
    assert hasattr(ife, "install")
Пример #4
0
def test_load_stdout_exists():
    ife = get_install_front_end('stdout')
    assert hasattr(ife, "install")
Пример #5
0
def test_load_raise_import_error_if_not_available_name():
    assert_raises(ImportError, lambda: get_install_front_end("takapouet"))
Пример #6
0
def test_load_pip_exists():
    ife = get_install_front_end('pip')
    assert hasattr(ife, "install")