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

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

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