'New volume should have same \'id\' and \'name_id\'.'

def test_name_id_same(self):

    vol_ref = testutils.create_volume(self.ctxt, size=1)
    self.assertEqual(vol_ref['name_id'], vol_ref['id'])
    expected_name = (CONF.volume_name_template % vol_ref['id'])
    self.assertEqual(expected_name, vol_ref['name'])
