@pytest.mark.parametrize(
        "state",
        (
            s for s in h2.connection.ConnectionState
            if s != h2.connection.ConnectionState.CLOSED
        ),
    )
    @pytest.mark.parametrize(
        "input_",
        [
            h2.connection.ConnectionInputs.RECV_PRIORITY,
            h2.connection.ConnectionInputs.SEND_PRIORITY
        ]
    )
    def test_priority_frames_allowed_in_all_states(self, state, input_):
        c = h2.connection.H2ConnectionStateMachine()
        c.state = state

        c.process_input(input_)
Priority frames can be sent/received in all connection states except
dataset/ETHPy150Open python-hyper/hyper-h2/test/test_state_machines.py/TestConnectionStateMachine.test_priority_frames_allowed_in_all_states