comparison 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
comparison
equal deleted inserted replaced
3140:105a0374faa1 3141:a45191e7c7bb
80 cur_usr_id = cur_user.user_id 80 cur_usr_id = cur_user.user_id
81 81
82 response = self.app.delete(url('notification', 82 response = self.app.delete(url('notification',
83 notification_id= 83 notification_id=
84 notification.notification_id)) 84 notification.notification_id))
85 self.assertEqual(response.body, 'ok')
85 86
86 cur_user = User.get(cur_usr_id) 87 cur_user = User.get(cur_usr_id)
87 self.assertEqual(cur_user.notifications, []) 88 self.assertEqual(cur_user.notifications, [])
88 89
89 def test_show(self): 90 def test_show(self):