#NEWLINE# def test_cookie( self ) : #NEWLINE# #INDENT# r = self . request ( { #NEWLINE# #INDENT# 'url' : self . mockurl ( 'get-cookie?key=foo' ) , #NEWLINE# 'headers' : { #NEWLINE# #INDENT# 'Cookie' : 'foo=bar' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertStatusCode ( r , 200 ) #NEWLINE# self . assertIn ( 'bar' , r . text )