#NEWLINE# def test_session_cookie_not_set_under_API_key_auth( self ) : #NEWLINE# #INDENT# alice = self . make_participant ( 'alice' , claimed_time = 'now' ) #NEWLINE# api_key = alice . recreate_api_key ( ) #NEWLINE# auth_header = ( b'Basic ' + b64encode ( ( b'%s:%s' % ( alice . id , api_key ) ) ) ) #NEWLINE# response = self . client . GET ( '/~alice/public.json' , HTTP_AUTHORIZATION = auth_header , HTTP_X_FORWARDED_PROTO = b'https' , HTTP_HOST = b'gratipay.com' ) #NEWLINE# assert ( response . code == 200 ) #NEWLINE# assert ( SESSION not in response . headers . cookie )