#NEWLINE# def test_replace_in_headers( self ) : #NEWLINE# #INDENT# self . interaction . replace_in_headers ( '123456789abcdef' , '<AUTH_TOKEN>' ) #NEWLINE# self . interaction . replace_in_headers ( 'cookie_value' , '<COOKIE_VALUE>' ) #NEWLINE# header = self . interaction . data [ 'request' ] [ 'headers' ] [ 'Authorization' ] #NEWLINE# assert ( header == '<AUTH_TOKEN>' ) #NEWLINE# header = self . interaction . data [ 'response' ] [ 'headers' ] [ 'Set-Cookie' ] #NEWLINE# assert ( header == 'cookie_name=<COOKIE_VALUE>' )