changeset 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 67a6567e14c2
children 602d30486915
files test/test_actions.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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/