#NEWLINE# @ mock . patch ( 'nova.db.floating_ip_deallocate' ) #NEWLINE# def test_deallocate( self , deallocate ) : #NEWLINE# #INDENT# floating_ip . FloatingIP . deallocate ( self . context , '1.2.3.4' ) #NEWLINE# deallocate . assert_called_with ( self . context , '1.2.3.4' )