Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
85847607
Commit
85847607
authored
Jan 27, 2003
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport storage version tests.
parent
11d4b776
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
lib/python/BDBStorage/tests/test_whitebox.py
lib/python/BDBStorage/tests/test_whitebox.py
+22
-0
No files found.
lib/python/BDBStorage/tests/test_whitebox.py
View file @
85847607
...
...
@@ -85,6 +85,14 @@ class WhiteboxLowLevelMinimal(BerkeleyTestBase):
# stored object isn't referenced by any other objects.
eq
(
len
(
self
.
_storage
.
_refcounts
.
keys
()),
0
)
def
checkStorageVersionAfterCreation
(
self
):
from
BDBStorage.BDBMinimalStorage
import
BDBMINIMAL_SCHEMA_VERSION
eq
=
self
.
assertEqual
eq
(
self
.
_storage
.
_info
[
'version'
],
BDBMINIMAL_SCHEMA_VERSION
)
self
.
_storage
.
close
()
self
.
open
()
eq
(
self
.
_storage
.
_info
[
'version'
],
BDBMINIMAL_SCHEMA_VERSION
)
class
WhiteboxHighLevelMinimal
(
ZODBTestBase
):
...
...
@@ -173,6 +181,19 @@ class WhiteboxHighLevelMinimal(ZODBTestBase):
eq
(
len
(
self
.
_storage
.
_pending
.
keys
()),
0
)
class
WhiteboxLowLevelFull
(
BerkeleyTestBase
):
ConcreteStorage
=
BDBFullStorage
def
checkStorageVersionAfterCreation
(
self
):
from
BDBStorage.BDBFullStorage
import
BDBFULL_SCHEMA_VERSION
eq
=
self
.
assertEqual
eq
(
self
.
_storage
.
_info
[
'version'
],
BDBFULL_SCHEMA_VERSION
)
self
.
_storage
.
close
()
self
.
open
()
eq
(
self
.
_storage
.
_info
[
'version'
],
BDBFULL_SCHEMA_VERSION
)
class
WhiteboxHighLevelFull
(
ZODBTestBase
):
ConcreteStorage
=
BDBFullStorage
...
...
@@ -229,6 +250,7 @@ def test_suite():
if
BDBStorage
.
is_available
:
suite
.
addTest
(
unittest
.
makeSuite
(
WhiteboxLowLevelMinimal
,
'check'
))
suite
.
addTest
(
unittest
.
makeSuite
(
WhiteboxHighLevelMinimal
,
'check'
))
suite
.
addTest
(
unittest
.
makeSuite
(
WhiteboxLowLevelFull
,
'check'
))
suite
.
addTest
(
unittest
.
makeSuite
(
WhiteboxHighLevelFull
,
'check'
))
return
suite
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment