Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
do3cc committed Mar 17, 2016
1 parent 41bab6d commit 26c0874
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/ZODB/tests/testMVCCMappingStorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
)

class MVCCTests:
def checkClosingNestedDatabasesWorks(self):
# This tests for the error described in
# https://github.com/zopefoundation/ZODB/issues/45
db1 = DB(self._storage)
db2 = DB(None, databases=db1.databases, database_name='2')
db1.open().get_connection('2')
db1.close()
db2.close()


def checkCrossConnectionInvalidation(self):
# Verify connections see updated state at txn boundaries.
Expand Down Expand Up @@ -122,7 +131,7 @@ def checkCrossConnectionIsolation(self):
self.assert_(r2['gamma']['delta'] == 'yes')
finally:
db.close()


class MVCCMappingStorageTests(
StorageTestBase.StorageTestBase,
Expand Down

0 comments on commit 26c0874

Please sign in to comment.