#NEWLINE# def setup( credentials , use_json ) : #NEWLINE# #INDENT# t1 = T1 ( auth_method = 'cookie' , api_base = API_BASE , json = use_json , ** credentials ) #NEWLINE# assert hasattr ( t1 , 'user_id' ) , 'No user ID present' #NEWLINE# return use_json