#NEWLINE# def test_bad_userid_returns_401( self ) : #NEWLINE# #INDENT# self . make_participant ( 'alice' , claimed_time = 'now' ) #NEWLINE# auth_header = ( b'Basic ' + b64encode ( b'foo:' ) ) #NEWLINE# response = self . client . GxT ( '/~alice/public.json' , HTTP_AUTHORIZATION = auth_header , HTTP_X_FORWARDED_PROTO = b'https' , HTTP_HOST = b'gratipay.com' ) #NEWLINE# assert ( response . code == 401 )