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
3836b940
Commit
3836b940
authored
Mar 05, 2004
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed interface methods:
isImplementedByInstancesOf to implementedBy isImplementedBy to providedBy
parent
cce3c72e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
src/persistent/tests/persistent.txt
src/persistent/tests/persistent.txt
+4
-4
src/persistent/tests/persistenttestbase.py
src/persistent/tests/persistenttestbase.py
+4
-4
src/transaction/tests/abstestIDataManager.py
src/transaction/tests/abstestIDataManager.py
+2
-2
No files found.
src/persistent/tests/persistent.txt
View file @
3836b940
...
...
@@ -440,9 +440,9 @@ anything if you run with -O.
... pass
... else:
... from persistent.interfaces import IPersistent
... assert IPersistent.i
sImplementedByInstancesOf
(Persistent)
... assert IPersistent.i
mplementedBy
(Persistent)
... p = Persistent()
... assert IPersistent.
isImplement
edBy(p)
... assert IPersistent.i
sImplementedByInstancesOf
(P)
... assert IPersistent.
provid
edBy(p)
... assert IPersistent.i
mplementedBy
(P)
... p = P()
... assert IPersistent.
isImplement
edBy(p)
... assert IPersistent.
provid
edBy(p)
src/persistent/tests/persistenttestbase.py
View file @
3836b940
...
...
@@ -185,16 +185,16 @@ class Test(unittest.TestCase):
if
interfaces
:
def
testInterface
(
self
):
self
.
assert_
(
IPersistent
.
i
sImplementedByInstancesOf
(
Persistent
),
self
.
assert_
(
IPersistent
.
i
mplementedBy
(
Persistent
),
"%s does not implement IPersistent"
%
Persistent
)
p
=
Persistent
()
self
.
assert_
(
IPersistent
.
isImplement
edBy
(
p
),
self
.
assert_
(
IPersistent
.
provid
edBy
(
p
),
"%s does not implement IPersistent"
%
p
)
self
.
assert_
(
IPersistent
.
i
sImplementedByInstancesOf
(
P
),
self
.
assert_
(
IPersistent
.
i
mplementedBy
(
P
),
"%s does not implement IPersistent"
%
P
)
p
=
self
.
klass
()
self
.
assert_
(
IPersistent
.
isImplement
edBy
(
p
),
self
.
assert_
(
IPersistent
.
provid
edBy
(
p
),
"%s does not implement IPersistent"
%
p
)
def
testDataManagerAndAttributes
(
self
):
...
...
src/transaction/tests/abstestIDataManager.py
View file @
3836b940
...
...
@@ -27,7 +27,7 @@ the data actually gets written/not written to the storge.
Obviously this test suite should be expanded.
$Id: abstestIDataManager.py,v 1.
4 2004/02/20 16:56:57 fdrake
Exp $
$Id: abstestIDataManager.py,v 1.
5 2004/03/05 22:08:50 jim
Exp $
"""
from
unittest
import
TestCase
...
...
@@ -60,4 +60,4 @@ class IDataManagerTests(TestCase, object):
def
testRollback
(
self
):
tran
=
self
.
get_transaction
()
rb
=
self
.
datamgr
.
savepoint
(
tran
)
self
.
assert_
(
IRollback
.
isImplement
edBy
(
rb
))
self
.
assert_
(
IRollback
.
provid
edBy
(
rb
))
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