Changeset 7312


Ignore:
Timestamp:
9 Dec 2011, 10:44:38 (13 years ago)
Author:
uli
Message:

Update tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/tests/test_captcha.py

    r7308 r7312  
    223223    pass
    224224
     225class FakeConfiguration(object):
     226    captcha = None
     227
     228    def __init__(self, captcha=None):
     229        self.captcha = captcha
     230
    225231class CaptchaManagerTestsWithSite(FunctionalTestCase):
    226232
     
    263269        # the default captcha
    264270        setSite(self.site)
    265         self.site['configuration'] = dict(captcha='invalid name')
     271        self.site['configuration'] = FakeConfiguration(captcha='invalid name')
    266272        chooser = getUtility(ICaptchaManager)
    267273        result = chooser.getCaptcha()
     
    274280        # the default captcha
    275281        setSite(self.site)
    276         self.site['configuration'] = dict(captcha='No captcha')
     282        self.site['configuration'] = FakeConfiguration(captcha='No captcha')
    277283        chooser = getUtility(ICaptchaManager)
    278284        result = chooser.getCaptcha()
Note: See TracChangeset for help on using the changeset viewer.