#NEWLINE# @ pytest . mark . gen_test #NEWLINE# @ pytest . mark . parametrize ( 'input' , [ '' , 'asd' ] ) #NEWLINE# def test_post_event_empty_request( setup_database , mock_processor , http_client , post_event_url , input ) : #NEWLINE# #INDENT# 'Test that server responds with 400 if invalid parameter is supplied to post_event request' #NEWLINE# request = tornado . httpclient . HTTPRequest ( post_event_url , method = 'POST' , body = input ) #NEWLINE# with pytest . raises ( tornado . httpclient . HTTPError ) : #NEWLINE# #INDENT# ( yield http_client . fetch ( request ) ) #NEWLINE# #UNINDENT# assert ( not context . request_processor . submit . called )