def test_flavor_delete(self, mock_auth): ''' Test for Delete a flavor from nova by id (nova flavor-delete) ''' mock_auth.side_effect = MagicMock() with patch.object(mock_auth, 'flavor_delete', MagicMock(return_value='A')): self.assertTrue(nova.flavor_delete('flavor_id'))
def test_flavor_delete(self): ''' Test for Delete a flavor from nova by id (nova flavor-delete) ''' self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, 'flavor_delete', MagicMock(return_value='A')): self.assertTrue(nova.flavor_delete('flavor_id'))
def test_flavor_delete(self): """ Test for Delete a flavor from nova by id (nova flavor-delete) """ self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, "flavor_delete", MagicMock(return_value="A")): self.assertTrue(nova.flavor_delete("flavor_id"))