Changeset 2977 in products for quintagroup.plonegooglesitemaps/branches/blacklist/quintagroup/plonegooglesitemaps/tests/testBlackoutList.py
- Timestamp:
- Nov 5, 2010 12:19:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonegooglesitemaps/branches/blacklist/quintagroup/plonegooglesitemaps/tests/testBlackoutList.py
r2941 r2977 98 98 99 99 def getPreparedLists(self, bl, fargs): 100 self.sm.edit(blackout_list= bl)100 self.sm.edit(blackout_list=[bl,]) 101 101 filtered = [f['url'] for f in self.smview.results()] 102 102 catpaths = [c.getURL() for c in self.catres] … … 118 118 catpaths, filtered, excluded)) 119 119 # Now check is output of unnamed filter samed to named one. 120 self.sm.edit(blackout_list= "doc1")120 self.sm.edit(blackout_list=["doc1",]) 121 121 filtered_dflt = [f['url'] for f in self.smview.results()] 122 122 map(lambda l: l.sort(), (filtered, filtered_dflt)) 123 123 self.assertTrue(filtered == filtered_dflt, 124 'Output of named "id" filter is not same to unnamed one: ' \124 'Output of named "id" filter is not same to unnamed one:\n' \ 125 125 'id-named: %s\nunnamed: %s' % (filtered, filtered_dflt)) 126 126
Note: See TracChangeset
for help on using the changeset viewer.