web/test/unittest_views_actions.py
changeset 8849 7da8339cd768
parent 7791 31bb51ea5485
child 9197 9905d9efa4a3
--- a/web/test/unittest_views_actions.py	Tue Apr 02 18:15:24 2013 +0200
+++ b/web/test/unittest_views_actions.py	Tue Apr 02 12:13:06 2013 +0200
@@ -30,16 +30,6 @@
         vaction = [action for action in actions if action.__regid__ == 'view'][0]
         self.assertEqual(vaction.url(), 'http://testing.fr/cubicweb/view?rql=CWUser%20X')
 
-    def test_sendmail_action(self):
-        req = self.request()
-        rset = self.execute('Any X WHERE X login "admin"', req=req)
-        actions = self.vreg['actions'].poss_visible_objects(req, rset=rset)
-        self.assertTrue([action for action in actions if action.__regid__ == 'sendemail'])
-        self.login('anon')
-        req = self.request()
-        rset = self.execute('Any X WHERE X login "anon"', req=req)
-        actions = self.vreg['actions'].poss_visible_objects(req, rset=rset)
-        self.assertFalse([action for action in actions if action.__regid__ == 'sendemail'])
 
 if __name__ == '__main__':
     unittest_main()