@pytest.mark.gen_test
def test_post_event(setup_database, mock_processor, http_client, post_event_url, event_batch_proto):
    context.request_processor.submit.return_value = True
    request = tornado.httpclient.HTTPRequest(post_event_url, method='POST', body=event_batch_proto)
    response = yield http_client.fetch(request)
    assert response.code == 200
    assert context.request_processor.submit.called
Verify that peerFromTransport raises an exception if the transport
dataset/ETHPy150Open Nordeus/pushkin/pushkin/tests/test_server_proto.py/test_post_event--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_sslverify.py/Constructors.test_peerFromNonSSLTransport