Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
21aa618f
Commit
21aa618f
authored
Dec 29, 2003
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkLoadBeforeVersion(): More BDBFullStorage code coverage, plus whitespace
abnormalization.
parent
586d88eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/ZODB/tests/VersionStorage.py
src/ZODB/tests/VersionStorage.py
+11
-2
No files found.
src/ZODB/tests/VersionStorage.py
View file @
21aa618f
...
...
@@ -205,9 +205,7 @@ class VersionStorage:
# is not current
self
.
_dostore
(
oid
,
revid
=
tid
,
data
=
MinPO
(
17
))
ltid
=
self
.
_storage
.
lastTransaction
()
ncdata
,
ncstart
,
end
=
self
.
_storage
.
loadBefore
(
oid
,
ltid
)
self
.
assertEqual
(
data
,
ncdata
)
self
.
assertEqual
(
tid
,
ncstart
)
...
...
@@ -534,3 +532,14 @@ class VersionStorage:
cn2
=
db
.
open
(
version
=
"b"
)
rt2
=
cn2
.
root
()
self
.
assertEqual
(
rt2
[
"b"
].
value
.
value
,
"still version"
)
def
checkLoadBeforeVersion
(
self
):
eq
=
self
.
assertEqual
oid
=
self
.
_storage
.
new_oid
()
revid1
=
self
.
_dostore
(
oid
,
data
=
1
)
revid2
=
self
.
_dostore
(
oid
,
data
=
2
,
revid
=
revid1
,
version
=
"kobe"
)
revid3
=
self
.
_dostore
(
oid
,
data
=
3
,
revid
=
revid2
,
version
=
"kobe"
)
data
,
start_tid
,
end_tid
=
self
.
_storage
.
loadBefore
(
oid
,
revid3
)
eq
(
zodb_unpickle
(
data
),
MinPO
(
1
))
eq
(
start_tid
,
revid1
)
eq
(
end_tid
,
None
)
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