[Checkins] SVN: Products.PluggableAuthService/branches/shh-15-masquerading/Products/PluggableAuthService/tests/test_masquerading.py Add test for denied masquerading.

Stefan H. Holek stefan at epy.co.at
Sun Mar 1 15:39:41 EST 2009


Log message for revision 97402:
  Add test for denied masquerading.

Changed:
  U   Products.PluggableAuthService/branches/shh-15-masquerading/Products/PluggableAuthService/tests/test_masquerading.py

-=-
Modified: Products.PluggableAuthService/branches/shh-15-masquerading/Products/PluggableAuthService/tests/test_masquerading.py
===================================================================
--- Products.PluggableAuthService/branches/shh-15-masquerading/Products/PluggableAuthService/tests/test_masquerading.py	2009-03-01 19:54:30 UTC (rev 97401)
+++ Products.PluggableAuthService/branches/shh-15-masquerading/Products/PluggableAuthService/tests/test_masquerading.py	2009-03-01 20:39:41 UTC (rev 97402)
@@ -104,6 +104,10 @@
         self.assertEqual(user.getId(), 'wilma')
         self.assertEqual(user.getRoles(), ['Authenticated', pastc.user_role])
 
+    def test__findUser_masquerading_denied(self):
+        user = self.pas._findUser(self.pas.plugins, 'wilma/fred')
+        self.failUnless(user is None)
+
     def test__verifyUser(self):
         info = self.pas._verifyUser(self.pas.plugins, 'fred/wilma')
         self.assertEqual(info['id'], 'wilma')



More information about the Checkins mailing list