#NEWLINE# def test_name_value( self ) : #NEWLINE# #INDENT# @ wptserve . handlers . handler #NEWLINE# def handler( request , response ) : #NEWLINE# #INDENT# response . set_cookie ( 'name' , 'value' ) #NEWLINE# return 'Test' #NEWLINE# #UNINDENT# route = ( 'GET' , '/test/name_value' , handler ) #NEWLINE# self . server . router . register ( * route ) #NEWLINE# resp = self . request ( self [ 1 ] ) #NEWLINE# self . assertEquals ( resp . info ( ) [ 'Set-Cookie' ] , 'name=value; Path=/' )