#NEWLINE# def test_cookie_dict( ) : #NEWLINE# #INDENT# ' Environ: Cookie dict ' #NEWLINE# t = dict ( ) #NEWLINE# t [ 'a=a' ] = { #NEWLINE# #INDENT# 'a' : 'a' , #NEWLINE# #UNINDENT# } #NEWLINE# t [ 'a=a; b=b' ] = { #NEWLINE# #INDENT# 'a' : 'a' , #NEWLINE# 'b' : 'b' , #NEWLINE# #UNINDENT# } #NEWLINE# t [ 'a=a; a=b' ] = { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# #UNINDENT# } #NEWLINE# for ( k , v ) in t . items ( ) : #NEWLINE# #INDENT# env = dict ( copy . deepcopy ( env1 ) ) #NEWLINE# env . update ( { #NEWLINE# #INDENT# 'HTTP_COOKIE' : k , #NEWLINE# #UNINDENT# } ) #NEWLINE# req = Request ( env ) #NEWLINE# for n in v : #NEWLINE# #INDENT# assert ( v [ n ] == req . cookies [ n ] ) #NEWLINE# assert ( k [ n ] == req . get_cookie ( n ) )