Changeset 2941 in products for quintagroup.plonegooglesitemaps/branches/blacklist/quintagroup/plonegooglesitemaps/tests/testBlackoutList.py
- Timestamp:
- Oct 28, 2010 6:10:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonegooglesitemaps/branches/blacklist/quintagroup/plonegooglesitemaps/tests/testBlackoutList.py
r2940 r2941 4 4 from base import * 5 5 from types import ListType, TupleType 6 from zope import component 6 7 from zope.component import queryMultiAdapter 7 8 … … 89 90 90 91 91 92 92 class TestBlacklistFormProcessing(TestFilterMixin): 93 93 … … 125 125 'id-named: %s\nunnamed: %s' % (filtered, filtered_dflt)) 126 126 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 127 142 128 143 def test_suite():
Note: See TracChangeset
for help on using the changeset viewer.