@pytest.mark.parametrize('client', [True, False])
    def test_can_set_initial_values(self, client):
        overrides = {
            h2.settings.HEADER_TABLE_SIZE: 8080,
            h2.settings.MAX_FRAME_SIZE: 16388,
            h2.settings.MAX_CONCURRENT_STREAMS: 100,
        }
        s = h2.settings.Settings(client=client, initial_values=overrides)

        assert s[h2.settings.HEADER_TABLE_SIZE] == 8080
        assert s[h2.settings.ENABLE_PUSH] == bool(client)
        assert s[h2.settings.INITIAL_WINDOW_SIZE] == 65535
        assert s[h2.settings.MAX_FRAME_SIZE] == 16388
        assert s[h2.settings.MAX_CONCURRENT_STREAMS] == 100
Decorator for views that checks that the user is logged in, redirecting
dataset/ETHPy150Open python-hyper/hyper-h2/test/test_settings.py/TestSettings.test_can_set_initial_values--crossover with--dataset/ETHPy150Open pinax/django-user-accounts/account/decorators.py/login_required