'Build a recordset with offset, and check equivalence.'

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

    partners1 = self.env['res.partner'].search([], limit=10)
    partners2 = self.env['res.partner'].search([])[:10]
    self.assertIsRecordset(partners1, 'res.partner')
    self.assertIsRecordset(partners2, 'res.partner')
    self.assertEqual(list(partners1), list(partners2))
