#NEWLINE# def test_check_empty_response( self ) : #NEWLINE# #INDENT# 'Test that check_empty_response returns 204 for an empty response.' #NEWLINE# orig_request = test_utils . build_request ( '/_ah/api/test' , '{}' ) #NEWLINE# method_config = { #NEWLINE# #INDENT# 'response' : { #NEWLINE# #INDENT# 'body' : 'empty' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# empty_response = self . server . check_empty_response ( orig_request , method_config , orig_request . start_response ) #NEWLINE# self . assert_http_match ( empty_response , 204 , [ ( 'Content-Length' , '0' ) ] , '' )