Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
ZEO
Commits
f66260e5
Commit
f66260e5
authored
May 02, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove checkLen() from BasicStorage and add it to LocalStorage.
parent
32d23f21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
src/ZODB/tests/BasicStorage.py
src/ZODB/tests/BasicStorage.py
+0
-8
src/ZODB/tests/LocalStorage.py
src/ZODB/tests/LocalStorage.py
+14
-0
No files found.
src/ZODB/tests/BasicStorage.py
View file @
f66260e5
...
...
@@ -68,14 +68,6 @@ class BasicStorage:
# Finish the transaction.
assert
newrevid
<>
revid
def
checkLen
(
self
):
# The length of the database ought to grow by one each time
assert
len
(
self
.
_storage
)
==
0
self
.
_dostore
()
assert
len
(
self
.
_storage
)
==
1
self
.
_dostore
()
assert
len
(
self
.
_storage
)
==
2
def
checkNonVersionStoreAndLoad
(
self
):
oid
=
self
.
_storage
.
new_oid
()
self
.
_dostore
(
oid
=
oid
,
data
=
7
)
...
...
src/ZODB/tests/LocalStorage.py
0 → 100644
View file @
f66260e5
class
LocalStorage
:
"""A single test that only make sense for local storages.
A local storage is one that doens't use ZEO. The __len__()
implementation for ZEO is inexact.
"""
def
checkLen
(
self
):
# The length of the database ought to grow by one each time
assert
len
(
self
.
_storage
)
==
0
self
.
_dostore
()
assert
len
(
self
.
_storage
)
==
1
self
.
_dostore
()
assert
len
(
self
.
_storage
)
==
2
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