'Ensure volume types get returns same entry.'

def test_volume_type_get_by_id_and_name(self):

    volume_types.create(self.ctxt, self.vol_type1_name, self.vol_type1_specs)
    new = volume_types.get_volume_type_by_name(self.ctxt, self.vol_type1_name)
    new2 = volume_types.get_volume_type(self.ctxt, new['id'])
    self.assertEqual(new, new2)
