comparison MoinMoin/security/_tests/test_textcha.py @ 1879:b7241c73c394

use more new-style classes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 22 Dec 2012 00:42:15 +0100
parents 4ac437141bbe
children 87272c032485
comparison
equal deleted inserted replaced
1878:a890875ae2b3 1879:b7241c73c394
101 cfg = app.cfg 101 cfg = app.cfg
102 cfg.textchas = None 102 cfg.textchas = None
103 cfg.secrets.pop('security/textcha') 103 cfg.secrets.pop('security/textcha')
104 flaskg.user.profile[LOCALE] = None 104 flaskg.user.profile[LOCALE] = None
105 105
106 class Element: 106 class Element(object):
107 def __init__(self): 107 def __init__(self):
108 self.parent = None 108 self.parent = None
109 self.value = 'Good Answer' 109 self.value = 'Good Answer'
110 110
111 def test_validate(self): 111 def test_validate(self):