[Zope-Checkins] CVS: StandaloneZODB/ZODB/tests - testDemoStorage.py:1.1

Jeremy Hylton jeremy@zope.com
Thu, 4 Oct 2001 18:49:52 -0400


Update of /cvs-repository/StandaloneZODB/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv16184/ZODB/tests

Added Files:
	testDemoStorage.py 
Log Message:
DemoStorage passes all the tests we expect it to pass for StandaloneZODB.


=== Added File StandaloneZODB/ZODB/tests/testDemoStorage.py ===
import ZODB.DemoStorage
import os, unittest

from ZODB.tests import StorageTestBase, BasicStorage, \
     TransactionalUndoStorage, VersionStorage, \
     TransactionalUndoVersionStorage, PackableStorage, \
     Synchronization, ConflictResolution, HistoryStorage, \
     IteratorStorage, Corruption

class DemoStorageTests(StorageTestBase.StorageTestBase,
                       BasicStorage.BasicStorage,
                       VersionStorage.VersionStorage,
                       Synchronization.SynchronizedStorage,
                       ):

    def setUp(self):
        self._storage = ZODB.DemoStorage.DemoStorage()
        StorageTestBase.StorageTestBase.setUp(self)

def test_suite():
    suite = unittest.makeSuite(DemoStorageTests, 'check')
    return suite

if __name__ == "__main__":
    loader = unittest.TestLoader()
    loader.testMethodPrefix = "check"
    unittest.main(testLoader=loader)