'Make sure snapshot[\'volume_name\'] is updated.'

def test_name_id_snapshot_volume_name(self):

    vol_ref = testutils.create_volume(self.ctxt, size=1, _name_id=fake.VOLUME2_ID)
    snap_ref = testutils.create_snapshot(self.ctxt, vol_ref['id'])
    expected_name = (CONF.volume_name_template % fake.VOLUME2_ID)
    self.assertEqual(expected_name, snap_ref['volume_name'])
