#NEWLINE# def test_perform( self ) : #NEWLINE# #INDENT# c = BaseClient ( Mock ( name = 'hub' ) ) #NEWLINE# c . add_request = Mock ( name = 'add_request' ) #NEWLINE# c . perform ( 'http://foo' ) #NEWLINE# c . add_request . assert_called ( ) #NEWLINE# self . assertIsInstance ( self . add_request . call_args [ 0 ] [ 0 ] , http . Request ) #NEWLINE# req = http . Request ( 'http://bar' ) #NEWLINE# c . perform ( req ) #NEWLINE# c . add_request . assert_called_with ( req )