#NEWLINE# def test_modpythonrequest( self ) : #NEWLINE# #INDENT# class FakeModPythonRequest ( ModPythonRequest ) : #NEWLINE# #INDENT# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( FakeModPythonRequest , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . _get = self . _post = self . _meta = self . _cookies = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# #UNINDENT# class Dummy ( ) : #NEWLINE# #INDENT# def get_options( self ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# #UNINDENT# req = Dummy ( ) #NEWLINE# req . uri = 'bogus' #NEWLINE# request = FakeModPythonRequest ( req ) #NEWLINE# self . assertEqual ( request . path , 'bogus' ) #NEWLINE# self . assertEqual ( request . GET . keys ( ) , [ ] ) #NEWLINE# self . assertEqual ( request . POST . keys ( ) , [ ] ) #NEWLINE# self . assertEqual ( request . COOKIES . keys ( ) , [ ] ) #NEWLINE# self . assertEqual ( request . META . keys ( ) , [ ] )