hunk.code_window:     def test_multiple_records_name(self):
           self.assertEqual(
               self.export(self.commands, fields=['const', 'value']),
               [
                   [u'4', ''],
                   ['', ''],
                   ['', ''],
                   ['', ''],
                   ['', ''],
               ])
       # essentially same as o2m, so boring
  
hunk.labels: keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep
hunk.after_edit:             [[ # FIXME: hardcoded comma, import uses config.csv_internal_sep
                  # resolution: remove configurable csv_internal_sep
                   u'4', u','.join(self.names)
               ]])
  
hunk.file_path: odoo/addons/test_impex/tests/test_export.py
hunk.type: replace
file: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from odoo.tests import common
  
  class TestDelegation(common.TransactionCase):
  
      def setUp(self):
          super(TestDelegation, self).setUp()
          env = self.env
          record = env['delegation.parent'].create({
              'child0_id': env['delegation.child0'].create({'field_0': 0}).id,
              'child1_id': env['delegation.child1'].create({'field_1': 1}).id,
          })
          self.record = record
  
      def test_delegating_record(self):
          env = self.env
          record = self.record
  
          # children fields can be looked up on the parent record directly
          self.assertEqual(
              record.field_0
              ,
              0
              )
          self.assertEqual(
              record.field_1
              ,
              1
              )
  
      def test_swap_child(self):
          env = self.env
          record = self.record
  
          record.write({
              'child0_id': env['delegation.child0'].create({'field_0': 42}).id
          })
          self.assertEqual(record.field_0, 42)
  
      def test_write(self):
          record = self.record
  
          record.write({'field_1': 4})
          self.assertEqual(record.field_1, 4)
          self.assertEqual(record.child1_id.field_1, 4)
  