Ignore:
Timestamp:
Nov 5, 2010 12:19:46 PM (13 years ago)
Author:
mylan
Message:

#228: Fix incorrect black_list field editing in tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/blacklist/quintagroup/plonegooglesitemaps/tests/testBlackoutList.py

    r2941 r2977  
    9898 
    9999    def getPreparedLists(self, bl, fargs): 
    100         self.sm.edit(blackout_list=bl) 
     100        self.sm.edit(blackout_list=[bl,]) 
    101101        filtered = [f['url'] for f in self.smview.results()] 
    102102        catpaths = [c.getURL() for c in self.catres] 
     
    118118             catpaths, filtered, excluded)) 
    119119        # 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",]) 
    121121        filtered_dflt = [f['url'] for f in self.smview.results()] 
    122122        map(lambda l: l.sort(), (filtered, filtered_dflt)) 
    123123        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' \ 
    125125            'id-named: %s\nunnamed: %s' % (filtered, filtered_dflt)) 
    126126 
Note: See TracChangeset for help on using the changeset viewer.