#NEWLINE# @ mock . patch ( 'nova.db.instance_tag_delete' ) #NEWLINE# def test_delete( self , mock_db_delete_inst_tags ) : #NEWLINE# #INDENT# req = self . _get_request ( ( '/v2/fake/servers/%s/tags/%s' % ( UUID , TAG2 ) ) , 'DELETE' ) #NEWLINE# context = req . environ [ 'nova.context' ] #NEWLINE# self . controller . delete ( req , UUID , TAG2 ) #NEWLINE# mock_db_delete_inst_tags . assert_called_once_with ( context , UUID , TAG2 )