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
Kirill Smelkov
ZODB
Commits
e6b642a6
Commit
e6b642a6
authored
Oct 18, 2008
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a storage interface verification.
parent
ca859741
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/ZODB/tests/BasicStorage.py
src/ZODB/tests/BasicStorage.py
+6
-0
No files found.
src/ZODB/tests/BasicStorage.py
View file @
e6b642a6
...
@@ -25,6 +25,8 @@ from ZODB.tests.StorageTestBase import zodb_unpickle, zodb_pickle
...
@@ -25,6 +25,8 @@ from ZODB.tests.StorageTestBase import zodb_unpickle, zodb_pickle
from
ZODB.tests.StorageTestBase
import
handle_serials
from
ZODB.tests.StorageTestBase
import
handle_serials
import
transaction
import
transaction
import
zope.interface
import
zope.interface.verify
ZERO
=
'
\
0
'
*
8
ZERO
=
'
\
0
'
*
8
...
@@ -188,3 +190,7 @@ class BasicStorage:
...
@@ -188,3 +190,7 @@ class BasicStorage:
self
.
_storage
.
store
(
oid
,
ZERO
,
zodb_pickle
(
MinPO
(
5
)),
''
,
t
)
self
.
_storage
.
store
(
oid
,
ZERO
,
zodb_pickle
(
MinPO
(
5
)),
''
,
t
)
self
.
_storage
.
tpc_vote
(
t
)
self
.
_storage
.
tpc_vote
(
t
)
self
.
_storage
.
tpc_finish
(
t
)
self
.
_storage
.
tpc_finish
(
t
)
def
checkInterfaces
(
self
):
for
iface
in
zope
.
interface
.
providedBy
(
self
.
_storage
):
zope
.
interface
.
verify
.
verifyObject
(
iface
,
self
.
_storage
)
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