Mercurial > p > roundup > code
comparison test/test_actions.py @ 3087:edcb45ef6879 maint-0.8
Backport from HEAD:
Fix failing test: mock lambda now also takes keyword arguments.
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Thu, 06 Jan 2005 22:13:09 +0000 |
| parents | 4b5d7b4bc089 |
| children | 79bcf944ceb8 |
comparison
equal
deleted
inserted
replaced
| 3085:67a6567e14c2 | 3087:edcb45ef6879 |
|---|---|
| 211 def testNoWebAccess(self): | 211 def testNoWebAccess(self): |
| 212 self.assertLoginLeavesMessages(['You do not have permission to login'], | 212 self.assertLoginLeavesMessages(['You do not have permission to login'], |
| 213 'foo', 'right') | 213 'foo', 'right') |
| 214 | 214 |
| 215 def testCorrectLogin(self): | 215 def testCorrectLogin(self): |
| 216 self.client.db.security.hasPermission = lambda a,b,c: True | 216 self.client.db.security.hasPermission = lambda *args, **kwargs: True |
| 217 | 217 |
| 218 def opendb(username): | 218 def opendb(username): |
| 219 self.assertEqual(username, 'foo') | 219 self.assertEqual(username, 'foo') |
| 220 self.client.opendb = opendb | 220 self.client.opendb = opendb |
| 221 | 221 |
