def test_image_meta_delete(self): ''' Test for Delete a key=value pair from the metadata for an image (nova image-meta set) ''' self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, 'image_meta_delete', MagicMock(return_value='A')): self.assertTrue(nova.image_meta_delete())
def test_image_meta_delete(self, mock_auth): ''' Test for Delete a key=value pair from the metadata for an image (nova image-meta set) ''' mock_auth.side_effect = MagicMock() with patch.object(mock_auth, 'image_meta_delete', MagicMock(return_value='A')): self.assertTrue(nova.image_meta_delete())