Changeset 15287 for main/waeup.kofa/trunk/src/waeup/kofa/tests
- Timestamp:
- 9 Jan 2019, 21:17:08 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/tests/test_authentication.py
r14670 r15287 40 40 IKofaPluggable) 41 41 42 SECRET = 'HgtuZZZ8' 42 43 43 44 class FakeSite(grok.Site, grok.Container): … … 133 134 self.getRootFolder()['app'] = FakeSite() 134 135 self.site = self.getRootFolder()['app'] 135 self.site['users'] = {'bob': Account('bob', 'secret')}136 self.site['users'] = {'bob': Account('bob', SECRET)} 136 137 setSite(self.site) 137 138 return … … 155 156 plugin = UserAuthenticatorPlugin() 156 157 result1 = plugin.authenticateCredentials( 157 dict(login='bob', password= 'secret'))158 dict(login='bob', password=SECRET)) 158 159 result2 = plugin.authenticateCredentials( 159 160 dict(login='bob', password='nonsense')) … … 185 186 # do `num` failed logins and a valid one afterwards 186 187 del self.site['users'] 187 self.site['users'] = {'bob': Account('bob', 'secret')}188 self.site['users'] = {'bob': Account('bob', SECRET)} 188 189 plugin = UserAuthenticatorPlugin() 189 190 resultlist = [] … … 193 194 dict(login='bob', password='wrongsecret'))) 194 195 resultlist.append(plugin.authenticateCredentials( 195 dict(login='bob', password= 'secret')))196 dict(login='bob', password=SECRET))) 196 197 return resultlist 197 198
Note: See TracChangeset for help on using the changeset viewer.