#NEWLINE# @ pytest . mark . gen_test #NEWLINE# def test_post_event( setup_database , mock_processor , http_client , post_event_url , event_batch_proto ) : #NEWLINE# #INDENT# 'Test that a valid request is succesfully parsed in post_event' #NEWLINE# context . request_processor . submit . return_value = True #NEWLINE# request = tornado . httpclient . HTTPRequest ( post_event_url , method = 'POST' , body = http_client ) #NEWLINE# response = ( yield http_client . fetch ( request ) ) #NEWLINE# assert ( response . code == 200 ) #NEWLINE# assert context . request_processor . submit . called