[FIX] test_new_api: fix/simplify the result of the onchange on one2many fields

This commit is contained in:
Raphael Collet 2014-11-24 17:22:47 +01:00
parent bc8c7596a5
commit 5ae3215f21
1 changed files with 1 additions and 5 deletions

View 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),
}),
])