Ignore:
Timestamp:
Oct 28, 2010 6:10:51 PM (14 years ago)
Author:
mylan
Message:

#228: Fix overhead in parsing of filter arguments. Added test (breakage yet)

File:
1 edited

Legend:

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

    r2940 r2941  
    44from base import * 
    55from types import ListType, TupleType 
     6from zope import component 
    67from zope.component import queryMultiAdapter 
    78 
     
    8990 
    9091 
    91  
    9292class TestBlacklistFormProcessing(TestFilterMixin): 
    9393 
     
    125125            'id-named: %s\nunnamed: %s' % (filtered, filtered_dflt)) 
    126126 
     127    # def testGetCorrectFilterName(self): 
     128    #     call_names = [] 
     129    #     origQMA = component._api.queryMultiAdapter 
     130    #     def patchQMA(objects, interface=Interface, name=u'', context=None): 
     131    #         call_names.append(name) 
     132    #         origQMA(objects, interface=interface, name=name, context=context) 
     133    #     component.queryMutliAdapter = patchQMA 
     134    #     self.sm.edit(blackout_list="FooFilterName:arg1:arg2:doc1") 
     135    #     self.smview.results() 
     136    #     self.assertTrue("FooFilterName" in call_names, 
     137    #         "Wrong filter name parsing - no FooFilterName in %s" % call_names) 
     138    #     component._api.queryMutliAdapter = origQMA 
     139         
     140         
     141         
    127142 
    128143def test_suite(): 
Note: See TracChangeset for help on using the changeset viewer.