[Zope-Checkins] CVS: Zope/lib/python/AccessControl/tests - testPasswordDigest.py:1.2 testSecurity.py:1.5 testUserFolder.py:1.3 framework.py:NONE

Tres Seaver tseaver@zope.com
Wed, 17 Oct 2001 16:01:02 -0400


Update of /cvs-repository/Zope/lib/python/AccessControl/tests
In directory cvs.zope.org:/tmp/cvs-serv30119/lib/python/AccessControl/tests

Modified Files:
	testPasswordDigest.py testSecurity.py testUserFolder.py 
Removed Files:
	framework.py 
Log Message:


  o Land unit test cleanup from branch.

  o Known breakage as of 2001/10/17:

    - TAL test suite is very broken (TAL is currently suppressed in
      lib/python/.testinfo).

    - AccessControl tests don't run if run first;  lib/python/.testinfo
      pushes them to the end of the queue, at which point they *do* run.
      Global side effects suck!

    - lib/python/BTrees/testBTreesUnicode.py:  weird flakiness around
      comparison of ASCII and Unicode strings;  breaks in different
      ways under Python 2.1 and 2.2.

    - lib/python/Products/PageTemplates/tests:  three tests break due
      to security asserctions.


=== Zope/lib/python/AccessControl/tests/testPasswordDigest.py 1.1 => 1.2 ===
 __version__='$Revision$'[11:-2]
 
-import os, sys
-execfile(os.path.join(sys.path[0], 'framework.py'))
+import os, sys, unittest
 
 from AccessControl import AuthEncoding
 import unittest
@@ -156,4 +155,14 @@
         pw = 'my-password'
         assert AuthEncoding.pw_validate(pw, pw)
 
-framework()
+
+def test_suite():
+    suite = unittest.TestSuite()
+    suite.addTest( unittest.makeSuite( PasswordDigestTests ) )
+    return suite
+
+def main():
+    unittest.TextTestRunner().run(test_suite())
+
+if __name__ == '__main__':
+    main()


=== Zope/lib/python/AccessControl/tests/testSecurity.py 1.4 => 1.5 ===
 __version__='$Revision$'[11:-2]
 
-import os, sys
-execfile(os.path.join(sys.path[0], 'framework.py'))
+import os, sys, unittest
 
 import ZODB
 from DocumentTemplate import HTML
@@ -160,4 +159,14 @@
         assert res == '10', res
 
     # Note: we need more tests!
-framework()
+
+def test_suite():
+    suite = unittest.TestSuite()
+    suite.addTest( unittest.makeSuite( SecurityTests ) )
+    return suite
+
+def main():
+    unittest.TextTestRunner().run(test_suite())
+
+if __name__ == '__main__':
+    main()


=== Zope/lib/python/AccessControl/tests/testUserFolder.py 1.2 => 1.3 ===
 __version__='$Revision$'[11:-2]
 
-import os, sys
-execfile(os.path.join(sys.path[0], 'framework.py'))
+import os, sys, unittest
 
 import ZODB
 from DocumentTemplate import HTML
@@ -141,5 +140,13 @@
             assert 0, "Raised overflow error erroneously"
 
 
+def test_suite():
+    suite = unittest.TestSuite()
+    suite.addTest( unittest.makeSuite( SecurityTests ) )
+    return suite
 
-framework()
+def main():
+    unittest.TextTestRunner().run(test_suite())
+
+if __name__ == '__main__':
+    main()

=== Removed File Zope/lib/python/AccessControl/tests/framework.py ===