def test_disable_safe():
    original_stderr_id, original_stdout_id = id(sys.stderr), id(sys.stdout)

    assert not Windows.is_enabled()
    assert not Windows.disable()

    assert not Windows.is_enabled()
    assert not Windows.disable()

    assert not Windows.is_enabled()
    assert not Windows.disable()

    assert original_stderr_id == id(sys.stderr)
    assert original_stdout_id == id(sys.stdout)
Called on each request.
dataset/ETHPy150Open Robpol86/colorclass/tests/test_windows.py/test_disable_safe--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/wsgi.py/Middleware.process_request