Browse Source

Don't test list order

pull/20/head
Sandy Carter 10 years ago
parent
commit
bff4fbeaa7
  1. 8
      base_contact_function/tests/test_partner_category.py

8
base_contact_function/tests/test_partner_category.py

@ -153,7 +153,7 @@ class test_partner_category(TransactionCase):
def test_name_search(self): def test_name_search(self):
self.assertListEqual(
self.assertItemsEqual(
self.partner_cat_model.name_search( self.partner_cat_model.name_search(
self.cr, self.uid, name='test_parent', context=self.context self.cr, self.uid, name='test_parent', context=self.context
), ),
@ -164,7 +164,7 @@ class test_partner_category(TransactionCase):
(self.test_parent_id, 'test_parent'), (self.test_parent_id, 'test_parent'),
] ]
) )
self.assertListEqual(
self.assertItemsEqual(
self.partner_cat_model.name_search( self.partner_cat_model.name_search(
self.cr, self.uid, name='test_child', context=self.context self.cr, self.uid, name='test_child', context=self.context
), ),
@ -174,7 +174,7 @@ class test_partner_category(TransactionCase):
'test_parent / test_child / test_grandchild'), 'test_parent / test_child / test_grandchild'),
] ]
) )
self.assertListEqual(
self.assertItemsEqual(
self.partner_cat_model.name_search( self.partner_cat_model.name_search(
self.cr, self.uid, name='test_grandchild', context=self.context self.cr, self.uid, name='test_grandchild', context=self.context
), ),
@ -183,7 +183,7 @@ class test_partner_category(TransactionCase):
'test_parent / test_child / test_grandchild'), 'test_parent / test_child / test_grandchild'),
] ]
) )
self.assertListEqual(
self.assertItemsEqual(
self.partner_cat_model.name_search( self.partner_cat_model.name_search(
self.cr, self.uid, name='test_orphan', context=self.context self.cr, self.uid, name='test_orphan', context=self.context
), ),

Loading…
Cancel
Save