def test_stream_state_machine_forbids_pushes_on_server_streams(self):
        s = h2.stream.H2StreamStateMachine(stream_id=1)
        s.process_input(h2.stream.StreamInputs.RECV_HEADERS)

        with pytest.raises(h2.exceptions.ProtocolError):
            s.process_input(h2.stream.StreamInputs.RECV_PUSH_PROMISE)
Streams where this peer is a server do not allow receiving pushed
dataset/ETHPy150Open python-hyper/hyper-h2/test/test_state_machines.py/TestStreamStateMachine.test_stream_state_machine_forbids_pushes_on_server_streams