'Resolve xml id with ref() and browse_ref()'

def test_20b(self):

    xid = 'base.test_partner_blue'
    partner = self.env.ref(xid)
    pid = self.ref(xid)
    self.assertTrue(pid, 'ref()    should    resolve    xid    to    database    ID')
    self.assertEqual(pid, partner.id, 'ref()    is    not    consistent    with    env.ref()')
    partner2 = self.browse_ref(xid)
    self.assertEqual(partner, partner2, 'browse_ref()    should    resolve    xid    to    browse    records')
