#NEWLINE# def test_http_w_creds( self ) : #NEWLINE# #INDENT# import httplib2 #NEWLINE# authorized = object ( ) #NEWLINE# class Creds ( object ) : #NEWLINE# #INDENT# def authorize( self , http ) : #NEWLINE# #INDENT# self . _called_with = http #NEWLINE# return authorized #NEWLINE# #UNINDENT# def create_scoped_required( self ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# creds = Creds ( ) #NEWLINE# conn = self . _makeOne ( creds ) #NEWLINE# self . assertTrue ( ( creds . http is authorized ) ) #NEWLINE# self . assertTrue ( isinstance ( creds . _called_with , httplib2 . Http ) )