'Test volume can be created with metadata and deleted.'

def test_create_delete_volume_with_metadata(self):

    test_meta = {'fake_key': 'fake_value'}
    volume = tests_utils.create_volume(self.context, metadata=test_meta, **self.volume_params)
    volume_id = volume['id']
    self.volume.create_volume(self.context, volume)
    self.assertEqual(test_meta, volume.metadata)
    self.volume.delete_volume(self.context, volume)
    self.assertRaises(exception.NotFound, db.volume_get, self.context, volume_id)
