@pytest.mark.network
def test_double_install_spurious_hash_mismatch(script, tmpdir):
    script.pip('install', 'wheel')  # Otherwise, it won't try to build wheels.
    with requirements_file('simple==1.0 --hash=sha256:393043e672415891885c9a2a'
                           '0929b1af95fb866d6ca016b42d2e6ce53619b653',
                           tmpdir) as reqs_file:
        # Install a package (and build its wheel):
        result = script.pip_install_local(
            '-r', reqs_file.abspath, expect_error=False)
        assert 'Successfully installed simple-1.0' in str(result)

        # Uninstall it:
        script.pip('uninstall', '-y', 'simple', expect_error=False)

        # Then install it again. We should not hit a hash mismatch, and the
        # package should install happily.
        result = script.pip_install_local(
            '-r', reqs_file.abspath, expect_error=False)
        assert 'Successfully installed simple-1.0' in str(result)
Tell us if ban has been expired
dataset/ETHPy150Open pypa/pip/tests/functional/test_install_reqs.py/test_double_install_spurious_hash_mismatch--crossover with--dataset/ETHPy150Open biicode/bii-server/rest/bottle_plugins/generic_blocker_bottle_plugin.py/GenericBlockerBottlePlugin._ban_expired