diff 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
line wrap: on
line diff
--- a/test/test_actions.py	Thu Jan 06 17:59:38 2005 +0000
+++ b/test/test_actions.py	Thu Jan 06 22:13:09 2005 +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')

Roundup Issue Tracker: http://roundup-tracker.org/