[Zope-CVS] CVS: Products/AdaptableStorage/tests - testAll.py:1.3 testZope2FS.py:1.9
Shane Hathaway
shane@zope.com
Tue, 31 Dec 2002 16:09:36 -0500
Update of /cvs-repository/Products/AdaptableStorage/tests
In directory cvs.zope.org:/tmp/cvs-serv13064/tests
Modified Files:
testAll.py testZope2FS.py
Log Message:
- Added ITPCConnection. It doesn't really belong in the serial
package, but there's no other good place for it right now.
- FSConnection now allows a hidden filename prefix other than
".", such as "_", taking advantage of the fact that the Zope 2 security
model disallows leading underscores.
- Added some more docs.
=== Products/AdaptableStorage/tests/testAll.py 1.2 => 1.3 ===
--- Products/AdaptableStorage/tests/testAll.py:1.2 Wed Dec 25 00:27:35 2002
+++ Products/AdaptableStorage/tests/testAll.py Tue Dec 31 16:09:05 2002
@@ -21,7 +21,7 @@
from testSerialization import SerializationTests
from testInterfaceImpl import InterfaceImplTests
from testASStorage import ASStorageTests
-from testZope2FS import Zope2FSTests
+from testZope2FS import Zope2FSTests, Zope2FSUnderscoreTests
try:
import psycopg
=== Products/AdaptableStorage/tests/testZope2FS.py 1.8 => 1.9 ===
--- Products/AdaptableStorage/tests/testZope2FS.py:1.8 Mon Dec 23 23:29:34 2002
+++ Products/AdaptableStorage/tests/testZope2FS.py Tue Dec 31 16:09:05 2002
@@ -50,11 +50,14 @@
class Zope2FSTests (unittest.TestCase):
+ def _createMapper(self, path):
+ return createMapper(path)
+
def setUp(self):
path = mktemp()
os.mkdir(path)
self.path = path
- dm, conns = createMapper(path)
+ dm, conns = self._createMapper(path)
self.dm = dm
assert len(conns) == 1
self.conn = conns[0]
@@ -198,6 +201,12 @@
conn2.close()
finally:
conn.close()
+
+
+class Zope2FSUnderscoreTests (Zope2FSTests):
+
+ def _createMapper(self, path):
+ return createMapper(path, hidden_filename_prefix='_')
if __name__ == '__main__':