#NEWLINE# @ mock . patch ( 'nova.db.instance_tag_exists' ) #NEWLINE# def test_show( self , mock_exists ) : #NEWLINE# #INDENT# mock_exists . return_value = True #NEWLINE# req = self . _get_request ( ( '/v2/fake/servers/%s/tags/%s' % ( UUID , TAG1 ) ) , 'GET' ) #NEWLINE# context = req . environ [ 'nova.context' ] #NEWLINE# self . controller . show ( req , UUID , TAG1 ) #NEWLINE# mock_exists . assert_called_once_with ( context , UUID , TAG1 )