diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-09-20 17:33:22 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-09-20 17:34:45 +0200 |
| commit | 64e43808b79badb5869a8d73cc1cc3f3b3aa8e12 (patch) | |
| tree | 9a22d5f6c03073a4d10faedea8df23a5211e8b8f /odoo/addons/test_testing_utilities/tests/test_methods.py | |
| parent | 944891ced081cda3b8b3db5faf3b7ac23b6b4ce8 (diff) | |
| parent | 58a83d12228fbbd4e9dde542e133d264204ee0f3 (diff) | |
[MERGE] forward port branch saas-12.5 up to 58a83d12228
Diffstat (limited to 'odoo/addons/test_testing_utilities/tests/test_methods.py')
| -rw-r--r-- | odoo/addons/test_testing_utilities/tests/test_methods.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/odoo/addons/test_testing_utilities/tests/test_methods.py b/odoo/addons/test_testing_utilities/tests/test_methods.py index 031d3a5e2ec..2a783aa2166 100644 --- a/odoo/addons/test_testing_utilities/tests/test_methods.py +++ b/odoo/addons/test_testing_utilities/tests/test_methods.py @@ -11,9 +11,11 @@ class TestBasic(common.TransactionCase): Y3 = {'f1': "Y", 'f2': 3} records = self.env['test_testing_utilities.a'].create([X1, Y2]) - # match in any order self.assertRecordValues(records, [X1, Y2]) - self.assertRecordValues(records, [Y2, X1]) + + with self.assertRaises(AssertionError): + # order should match + self.assertRecordValues(records, [Y2, X1]) # fail if wrong size with self.assertRaises(AssertionError): |
