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

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

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