Commit df348828 authored by Vincent Pelletier's avatar Vincent Pelletier

Make test less sensitive to extra predicates present on the system which might...

Make test less sensitive to extra predicates present on the system which might rightfully match used document.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22048 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 309f4dc6
...@@ -413,9 +413,9 @@ class TestDomainTool(TestPredicateMixIn): ...@@ -413,9 +413,9 @@ class TestDomainTool(TestPredicateMixIn):
# Basic sanity checks # Basic sanity checks
self.assertTrue(predicate_both_match.test(document)) self.assertTrue(predicate_both_match.test(document))
self.assertFalse(predicate_one_match.test(document)) self.assertFalse(predicate_one_match.test(document))
self.assertSameSet(portal_domains.searchPredicateList(document, test=1), [predicate_both_match]) self.assertTrue(predicate_one_match not in portal_domains.searchPredicateList(document, test=1))
# Real test # Real test
self.assertSameSet(portal_domains.searchPredicateList(document, test=0), [predicate_both_match]) self.assertTrue(predicate_one_match not in portal_domains.searchPredicateList(document, test=0))
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
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