'Build a recordset, and check its contents.'

@mute_logger('odoo.models')
def test_00_query(self):

    domain = [('name', 'ilike', 'j')]
    partners = self.env['res.partner'].search(domain)
    self.assertTrue(partners)
    self.assertIsRecordset(partners, 'res.partner')
    for p in partners:
        self.assertIsRecord(p, 'res.partner')
