#NEWLINE# @ mock . patch ( 'nova.db.fixed_ip_associate_pool' ) #NEWLINE# def test_associate_pool( self , associate ) : #NEWLINE# #INDENT# associate . return_value = fake_fixed_ip #NEWLINE# fixedip = fixed_ip . FixedIP . associate_pool ( fixedip . context , 123 , 'fake-uuid' , 'host' ) #NEWLINE# associate . assert_called_with ( self . context , 123 , instance_uuid = 'fake-uuid' , host = 'host' , virtual_interface_id = None ) #NEWLINE# self . _compare ( fixedip , fake_fixed_ip )