[Zodb-checkins] CVS: Packages/bsddb3Storage - test_create.py:1.5

barry@digicool.com barry@digicool.com
Tue, 3 Apr 2001 14:38:57 -0400 (EDT)


Update of /cvs-repository/Packages/bsddb3Storage/test
In directory korak:/tmp/cvs-serv13014

Modified Files:
	test_create.py 
Log Message:
Another refactoring to share more code.  The actual test is done in a
TextMixin class.



--- Updated File test_create.py in package Packages/bsddb3Storage --
--- test_create.py	2001/04/02 23:09:02	1.4
+++ test_create.py	2001/04/03 18:38:56	1.5
@@ -27,6 +27,8 @@
             os.unlink(os.path.join(self._dbhome, file))
         os.removedirs(self._dbhome)
     
+
+class TestMixin:
     def checkDBHomeExists(self):
         assert os.path.isdir(self._dbhome)
 
@@ -37,7 +39,7 @@
     ConcreteStorage = Minimal.Minimal
 
 
-class MinimalDBHomeTest(MinimalBaseFramework):
+class MinimalDBHomeTest(MinimalBaseFramework, TestMixin):
     pass
 
 
@@ -46,7 +48,7 @@
     import Full
     ConcreteStorage = Full.Full
 
-class FullDBHomeTest(FullBaseFramework):
+class FullDBHomeTest(FullBaseFramework, TestMixin):
     pass