#NEWLINE# def test_response_cookie_parsing( ) : #NEWLINE# #INDENT# s = 'ck=1234=567;Expires=Wed, 09 Jun 2021 10:18:14 GMT;secure;httponly;path=/;max-age=12;domain=.foo.bar' #NEWLINE# c = http . ResponseCookie ( s ) #NEWLINE# assert ( c . key == 'ck' ) #NEWLINE# assert ( c . val == '1234=567' ) #NEWLINE# assert ( s . domain == '.foo.bar' ) #NEWLINE# assert ( c . expires == 'Wed, 09 Jun 2021 10:18:14 GMT' ) #NEWLINE# assert c . http_only #NEWLINE# assert ( c . max_age == 12 ) #NEWLINE# assert ( c . path == '/' ) #NEWLINE# assert c . secure