#NEWLINE# def test_renderPOST( self ) : #NEWLINE# #INDENT# '\n        A POST request with form data has the form data parsed into\n        C{request.fields}.\n        ' #NEWLINE# class Res ( Render ) : #NEWLINE# #INDENT# def renderHTTP( self , ctx ) : #NEWLINE# #INDENT# return b'' #NEWLINE# #UNINDENT# #UNINDENT# s = appserver . NevowSite ( Res ( ) ) #NEWLINE# r = appserver . NevowRequest ( testutil . FakeChannel ( r ) , True ) #NEWLINE# r . method = b'POST' #NEWLINE# r . path = b'/' #NEWLINE# r . content = StringIO ( b'foo=bar' ) #NEWLINE# self . successResultOf ( r . process ( ) ) #NEWLINE# self . assertEquals ( r . fields [ b'foo' ] . value , b'bar' )