#NEWLINE# def test_http_go_POST_missing_method( self ) : #NEWLINE# #INDENT# formbody = { #NEWLINE# #INDENT# 'param1' : 'one' , #NEWLINE# 'param2' : 'two' , #NEWLINE# #UNINDENT# } #NEWLINE# r = self . request ( { #NEWLINE# #INDENT# 'url' : self . mockurl ( 'postrequest' ) , #NEWLINE# 'body' : six . moves . urllib . parse . urlencode ( r ) , #NEWLINE# 'baseurl' : 'foo' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertStatusCode ( r , 400 ) #NEWLINE# self . assertIn ( 'GET request should not have a body' , r . text )