Commit 6d1f7d68 authored by Jim Fulton's avatar Jim Fulton

Updated to reflect Barry's refactoring of the test base classes.

We now pass the tests we test. We still have to add the version tests,
which we were failing before.
parent c87fc885
import sys, os
import sys
sys.path.insert(0, '.')
import ZODB.FileStorage
import unittest, UndoVersionStorage
import os, unittest
import StorageTestBase, BasicStorage, TransactionalUndoStorage
class FileStorageTests(UndoVersionStorage.UndoVersionStorage,
unittest.TestCase):
class FileStorageTests(
StorageTestBase.StorageTestBase,
BasicStorage.BasicStorage,
TransactionalUndoStorage.TransactionalUndoStorage,
):
def setUp(self):
self._storage = ZODB.FileStorage.FileStorage(
'FileStorageTests.fs', create=1)
UndoVersionStorage.UndoVersionStorage.setUp(self)
StorageTestBase.StorageTestBase.setUp(self)
def tearDown(self):
UndoVersionStorage.UndoVersionStorage.tearDown(self)
StorageTestBase.StorageTestBase.tearDown(self)
os.remove('FileStorageTests.fs')
def test_suite():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment