Exemple #1
0
 def test_volume_delete(self, mock_auth):
     '''
     Test for Destroy the volume
     '''
     mock_auth.side_effect = MagicMock()
     with patch.object(mock_auth,
                       'volume_delete', MagicMock(return_value='A')):
         self.assertTrue(nova.volume_delete('name'))
Exemple #2
0
 def test_volume_delete(self):
     '''
     Test for Destroy the volume
     '''
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, 'volume_delete',
                       MagicMock(return_value='A')):
         self.assertTrue(nova.volume_delete('name'))
 def test_volume_delete(self):
     """
     Test for Destroy the volume
     """
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, "volume_delete",
                       MagicMock(return_value="A")):
         self.assertTrue(nova.volume_delete("name"))