Mercurial > p > roundup > code
changeset 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 | f1cba8342186 |
| children | 293a17149765 |
| files | test/test_actions.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test/test_actions.py Thu Dec 16 22:34:34 2004 +0000 +++ b/test/test_actions.py Fri Dec 17 23:42:34 2004 +0000 @@ -213,7 +213,7 @@ 'foo', 'right') def testCorrectLogin(self): - self.client.db.security.hasPermission = lambda a,b,c: True + self.client.db.security.hasPermission = lambda *args, **kwargs: True def opendb(username): self.assertEqual(username, 'foo')
