[Zope-CVS] CVS: Products/PluggableAuthService/plugins/tests -
test_DyamicGroupsPlugin.py:1.4
test_HTTPBasicAuthHelper.py:1.5 test_LocalRolePlugin.py:1.4
test_RecursiveGroupsPlugin.py:1.4
test_ScriptablePlugin.py:1.4 test_ZODBGroupManager.py:1.5
test_ZODBRoleManager.py:1.5 test_ZODBUserManager.py:1.5
Lennart Regebro
regebro at nuxeo.com
Mon Sep 13 11:14:47 EDT 2004
Update of /cvs-repository/Products/PluggableAuthService/plugins/tests
In directory cvs.zope.org:/tmp/cvs-serv17968
Modified Files:
test_DyamicGroupsPlugin.py test_HTTPBasicAuthHelper.py
test_LocalRolePlugin.py test_RecursiveGroupsPlugin.py
test_ScriptablePlugin.py test_ZODBGroupManager.py
test_ZODBRoleManager.py test_ZODBUserManager.py
Log Message:
Made tests runnable with test.py.
=== Products/PluggableAuthService/plugins/tests/test_DyamicGroupsPlugin.py 1.3 => 1.4 ===
--- Products/PluggableAuthService/plugins/tests/test_DyamicGroupsPlugin.py:1.3 Thu Aug 12 11:15:55 2004
+++ Products/PluggableAuthService/plugins/tests/test_DyamicGroupsPlugin.py Mon Sep 13 11:14:46 2004
@@ -410,3 +410,12 @@
groups = dpg.getGroupsForPrincipal( principal, {} )
self.assertEqual( len( groups ), 1 )
self.failUnless( 'scripted' in groups )
+
+if __name__ == "__main__":
+ unittest.main()
+
+def test_suite():
+ return unittest.TestSuite((
+ unittest.makeSuite( DynamicGroupsPlugin ),
+ ))
+
\ No newline at end of file
=== Products/PluggableAuthService/plugins/tests/test_HTTPBasicAuthHelper.py 1.4 => 1.5 ===
--- Products/PluggableAuthService/plugins/tests/test_HTTPBasicAuthHelper.py:1.4 Mon Aug 30 11:29:01 2004
+++ Products/PluggableAuthService/plugins/tests/test_HTTPBasicAuthHelper.py Mon Sep 13 11:14:46 2004
@@ -106,3 +106,12 @@
self.failIf( response._unauthorized_called )
helper.resetCredentials( request, response )
self.failUnless( response._unauthorized_called )
+
+if __name__ == "__main__":
+ unittest.main()
+
+def test_suite():
+ return unittest.TestSuite((
+ unittest.makeSuite( HTTPBasicAuthHelperTests ),
+ ))
+
\ No newline at end of file
=== Products/PluggableAuthService/plugins/tests/test_LocalRolePlugin.py 1.3 => 1.4 ===
--- Products/PluggableAuthService/plugins/tests/test_LocalRolePlugin.py:1.3 Thu Aug 12 11:15:55 2004
+++ Products/PluggableAuthService/plugins/tests/test_LocalRolePlugin.py Mon Sep 13 11:14:46 2004
@@ -128,4 +128,9 @@
if __name__ == "__main__":
unittest.main()
-
+
+
+def test_suite():
+ return unittest.TestSuite((
+ unittest.makeSuite( LocalRolePluginTestCase ),
+ ))
=== Products/PluggableAuthService/plugins/tests/test_RecursiveGroupsPlugin.py 1.3 => 1.4 ===
--- Products/PluggableAuthService/plugins/tests/test_RecursiveGroupsPlugin.py:1.3 Thu Aug 12 11:15:55 2004
+++ Products/PluggableAuthService/plugins/tests/test_RecursiveGroupsPlugin.py Mon Sep 13 11:14:46 2004
@@ -189,3 +189,9 @@
if __name__ == "__main__":
unittest.main()
+
+
+def test_suite():
+ return unittest.TestSuite((
+ unittest.makeSuite( RecursiveGroupsPluginTests ),
+ ))
=== Products/PluggableAuthService/plugins/tests/test_ScriptablePlugin.py 1.3 => 1.4 ===
--- Products/PluggableAuthService/plugins/tests/test_ScriptablePlugin.py:1.3 Thu Aug 12 11:15:55 2004
+++ Products/PluggableAuthService/plugins/tests/test_ScriptablePlugin.py Mon Sep 13 11:14:46 2004
@@ -109,3 +109,9 @@
self.assertEqual( len(scriptable_plugin.__implements__), 3 )
+
+def test_suite():
+ return unittest.TestSuite((
+ unittest.makeSuite( ScriptablePluginTests ),
+ ))
+
\ No newline at end of file
=== Products/PluggableAuthService/plugins/tests/test_ZODBGroupManager.py 1.4 => 1.5 ===
--- Products/PluggableAuthService/plugins/tests/test_ZODBGroupManager.py:1.4 Mon Aug 30 11:29:19 2004
+++ Products/PluggableAuthService/plugins/tests/test_ZODBGroupManager.py Mon Sep 13 11:14:46 2004
@@ -231,3 +231,8 @@
if __name__ == "__main__":
unittest.main()
+
+def test_suite():
+ return unittest.TestSuite((
+ unittest.makeSuite( ZODBGroupManagerTests ),
+ ))
=== Products/PluggableAuthService/plugins/tests/test_ZODBRoleManager.py 1.4 => 1.5 ===
--- Products/PluggableAuthService/plugins/tests/test_ZODBRoleManager.py:1.4 Mon Aug 30 11:30:11 2004
+++ Products/PluggableAuthService/plugins/tests/test_ZODBRoleManager.py Mon Sep 13 11:14:46 2004
@@ -453,3 +453,9 @@
if __name__ == "__main__":
unittest.main()
+
+def test_suite():
+ return unittest.TestSuite((
+ unittest.makeSuite( ZODBRoleManagerTests ),
+ ))
+
\ No newline at end of file
=== Products/PluggableAuthService/plugins/tests/test_ZODBUserManager.py 1.4 => 1.5 ===
--- Products/PluggableAuthService/plugins/tests/test_ZODBUserManager.py:1.4 Mon Aug 30 11:31:11 2004
+++ Products/PluggableAuthService/plugins/tests/test_ZODBUserManager.py Mon Sep 13 11:14:46 2004
@@ -360,3 +360,9 @@
if __name__ == "__main__":
unittest.main()
+
+def test_suite():
+ return unittest.TestSuite((
+ unittest.makeSuite( ZODBUserManagerTests ),
+ ))
+
\ No newline at end of file
More information about the Zope-CVS
mailing list