def test_volume_detach(self, mock_auth): ''' Test for Attach a block storage volume ''' mock_auth.side_effect = MagicMock() with patch.object(mock_auth, 'volume_detach', MagicMock(return_value='A')): self.assertTrue(nova.volume_detach('name'))
def test_volume_detach(self): ''' Test for Attach a block storage volume ''' self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, 'volume_detach', MagicMock(return_value='A')): self.assertTrue(nova.volume_detach('name'))
def test_volume_detach(self): """ Test for Attach a block storage volume """ self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, "volume_detach", MagicMock(return_value="A")): self.assertTrue(nova.volume_detach("name"))