diff rhodecode/tests/functional/test_admin_notifications.py @ 3141:a45191e7c7bb beta

access control: fix owner checks - they were always true The lambda expressions seems to be left over from something else. They were no longer executed and thus always evaluated to true. Some of the functions also failed if they were executed.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 02 Jan 2013 13:56:44 +0100
parents 40b3a54391f9
children 63e49418a4cc
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_admin_notifications.py	Wed Jan 02 13:56:40 2013 +0100
+++ b/rhodecode/tests/functional/test_admin_notifications.py	Wed Jan 02 13:56:44 2013 +0100
@@ -82,6 +82,7 @@
         response = self.app.delete(url('notification',
                                        notification_id=
                                        notification.notification_id))
+        self.assertEqual(response.body, 'ok')
 
         cur_user = User.get(cur_usr_id)
         self.assertEqual(cur_user.notifications, [])