Commit 3a33bbf9 authored by Jérome Perrin's avatar Jérome Perrin

fix test, after calling a set setter, there are not guarantee on the order of list getter

parent c7cb5665
......@@ -701,7 +701,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
person.setRegionList(['beta', 'alpha', 'alpha'])
self.assertEquals(person.getRegionList(), ['beta', 'alpha', 'alpha'])
person.setRegionSet(['alpha', 'beta', 'alpha'])
self.assertEquals(person.getRegionList(), ['beta', 'alpha'])
self.assertEquals(sorted(person.getRegionList()), ['alpha', 'beta'])
person.setDefaultRegion('alpha')
self.assertEquals(person.getDefaultRegion(), 'alpha')
self.assertEquals(sorted(person.getRegionSet()), ['alpha', 'beta'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment