#NEWLINE# def test_wsgirequest( self ) : #NEWLINE# #INDENT# request = WSGIRequest ( { #NEWLINE# #INDENT# 'PATH_INFO' : 'bogus' , #NEWLINE# 'REQUEST_METHOD' : 'bogus' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( request . GET . keys ( ) , [ ] ) #NEWLINE# self . assertEqual ( request . POST . keys ( ) , [ ] ) #NEWLINE# self . assertEqual ( request . COOKIES . keys ( ) , [ ] ) #NEWLINE# self . assertEqual ( set ( request . META . keys ( ) ) , set ( [ 'PATH_INFO' , 'REQUEST_METHOD' , 'SCRIPT_NAME' ] ) ) #NEWLINE# self . assertEqual ( request . META [ 'PATH_INFO' ] , 'bogus' ) #NEWLINE# self . assertEqual ( request . META [ 'REQUEST_METHOD' ] , 'bogus' ) #NEWLINE# self . assertEqual ( request . META [ 'SCRIPT_NAME' ] , '' )