From 0f36307e019280bcaec03eff8ab85d2f9d7099b7 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Fri, 25 Apr 2008 11:32:43 +0000 Subject: [PATCH] Check List Order too git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20813 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ZSQLCatalog/tests/testSearchKeys.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/product/ZSQLCatalog/tests/testSearchKeys.py b/product/ZSQLCatalog/tests/testSearchKeys.py index b429ed008c..a1570ae994 100644 --- a/product/ZSQLCatalog/tests/testSearchKeys.py +++ b/product/ZSQLCatalog/tests/testSearchKeys.py @@ -43,21 +43,12 @@ class TestSearchKeyLexer(unittest.TestCase): run_all_test = 1 quiet = 0 - def assertSameSet(self, a, b, msg=""): - if not msg: - msg='%r != %r' % (a, b) - for i in a: - self.failUnless(i in b, msg) - for i in b: - self.failUnless(i in a, msg) - self.assertEquals(len(a), len(b), msg) - def compare(self, search_key_class, search_value, expected_token_types): """ """ key = getSearchKeyInstance(search_key_class) tokens = key.tokenize(search_value) token_types = [x.type for x in tokens] - self.assertSameSet(token_types, expected_token_types) + self.assertEqual(token_types, list(expected_token_types)) def test_01ProperPoolInitialization(self, quiet=quiet, run=run_all_test): """ Check that search key pool is properly initialized """ -- 2.30.9