[FIX] test_new_api: fix/simplify the result of the onchange on one2many fields
authorRaphael Collet <rco@openerp.com>
Mon, 24 Nov 2014 16:22:47 +0000 (17:22 +0100)
committerRaphael Collet <rco@openerp.com>
Mon, 24 Nov 2014 16:22:47 +0000 (17:22 +0100)
openerp/addons/test_new_api/tests/test_onchange.py

index da28bdf..709e07f 100644 (file)
@@ -140,14 +140,10 @@ class TestOnChange(common.TransactionCase):
         self.assertItemsEqual(result['value']['messages'], [
             (0, 0, {
                 'name': "[%s] %s" % ("Foo", USER.name),
-                'body': BODY,
-                'author': USER.id,
-                'size': len(BODY),
             }),
             (1, message.id, {
                 'name': "[%s] %s" % ("Foo", USER.name),
-                'body': BODY,
-                'author': USER.id,
+                # Note: size is computed because it was not provided beforehand
                 'size': len(BODY),
             }),
         ])