Changeset 7312
- Timestamp:
- 9 Dec 2011, 10:44:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/tests/test_captcha.py
r7308 r7312 223 223 pass 224 224 225 class FakeConfiguration(object): 226 captcha = None 227 228 def __init__(self, captcha=None): 229 self.captcha = captcha 230 225 231 class CaptchaManagerTestsWithSite(FunctionalTestCase): 226 232 … … 263 269 # the default captcha 264 270 setSite(self.site) 265 self.site['configuration'] = dict(captcha='invalid name')271 self.site['configuration'] = FakeConfiguration(captcha='invalid name') 266 272 chooser = getUtility(ICaptchaManager) 267 273 result = chooser.getCaptcha() … … 274 280 # the default captcha 275 281 setSite(self.site) 276 self.site['configuration'] = dict(captcha='No captcha')282 self.site['configuration'] = FakeConfiguration(captcha='No captcha') 277 283 chooser = getUtility(ICaptchaManager) 278 284 result = chooser.getCaptcha()
Note: See TracChangeset for help on using the changeset viewer.