Пример #1
0
def test_install():
    assert "my-first-p" not in installed_packages()

    # install local wheel
    install("my-first-p")

    # test new package still not in virtualenv
    assert "my-first-p" not in installed_packages()
Пример #2
0
def test_installed_packages():
    pkgs = set(installed_packages())
    assert "pkglts" in pkgs