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