[Zope3-checkins] CVS: Zope3/lib/python/Zope/Server/VFS/tests - PosixFilesystemTests.py:1.3 WriteFilesystemTests.py:1.4
Jeremy Hylton
jeremy@zope.com
Wed, 17 Jul 2002 19:10:35 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Server/VFS/tests
In directory cvs.zope.org:/tmp/cvs-serv5283/Zope/Server/VFS/tests
Modified Files:
PosixFilesystemTests.py WriteFilesystemTests.py
Log Message:
Remove unittest boilerplate from modules that don't need it.
=== Zope3/lib/python/Zope/Server/VFS/tests/PosixFilesystemTests.py 1.2 => 1.3 ===
IPosixFileSystem.isImplementedByInstancesOf(class_))
self.failUnless(verifyClass(IPosixFileSystem, class_))
-
-def test_suite():
- loader = unittest.TestLoader()
- return loader.loadTestsFromTestCase(OSFileSystemTest)
-
-if __name__=='__main__':
- unittest.TextTestRunner().run( test_suite() )
=== Zope3/lib/python/Zope/Server/VFS/tests/WriteFilesystemTests.py 1.3 => 1.4 ===
$Id$
"""
-from StringIO import StringIO
+from cStringIO import StringIO
from Interface.Verify import verifyClass
from Zope.Server.VFS.IWriteFileSystem import IWriteFileSystem
@@ -128,11 +128,3 @@
self.failUnless(
IWriteFileSystem.isImplementedByInstancesOf(class_))
self.failUnless(verifyClass(IWriteFileSystem, class_))
-
-
-def test_suite():
- loader = unittest.TestLoader()
- return loader.loadTestsFromTestCase(OSFileSystemTest)
-
-if __name__=='__main__':
- unittest.TextTestRunner().run( test_suite() )