#NEWLINE# def test_get_cookie_value_from_request_added_cookies( self ) : #NEWLINE# #INDENT# cookie_str = dict_to_cookie_str ( { #NEWLINE# #INDENT# 'optional' : self . cookie_group . get_version ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# Cookie . objects . create ( cookiegroup = cookie_str . cookie_group , name = 'bar' , domain = '.example.com' ) #NEWLINE# self . request . COOKIES [ settings . COOKIE_CONSENT_NAME ] = cookie_str #NEWLINE# res = get_cookie_value_from_request ( self . request , 'optional' ) #NEWLINE# self . assertIsNone ( res )