Mercurial > p > roundup > code
comparison test/test_actions.py @ 3018:e665582ec099
Fix failing test: mock lambda now also takes keyword arguments.
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Fri, 17 Dec 2004 23:42:34 +0000 |
| parents | 4b5d7b4bc089 |
| children | 79bcf944ceb8 |
comparison
equal
deleted
inserted
replaced
| 3017:f1cba8342186 | 3018:e665582ec099 |
|---|---|
| 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 |
