Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zope.proxy
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
Boxiang Sun
zope.proxy
Commits
550c0c6e
Commit
550c0c6e
authored
Jul 07, 2010
by
Godefroid Chapelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo
parent
8f045502
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/zope/proxy/tests/test_proxy.py
src/zope/proxy/tests/test_proxy.py
+9
-9
No files found.
src/zope/proxy/tests/test_proxy.py
View file @
550c0c6e
...
...
@@ -507,7 +507,7 @@ def test_queryProxy():
1
>>> int(queryProxy(p2, ProxyBase) is p2)
1
"""
def
test_queryInnerProxy
():
...
...
@@ -544,7 +544,7 @@ def test_queryInnerProxy():
1
>>> int(queryInnerProxy(p3, P2) is p2)
1
"""
def
test_sameProxiedObjects
():
...
...
@@ -599,7 +599,7 @@ def test_subclassing_proxies():
>>> p = MyProxy(l)
I can use attributes defined by the class, including slots:
>>> p.x = 'x'
>>> p.x
'x'
...
...
@@ -607,14 +607,14 @@ def test_subclassing_proxies():
'x'
I can also use attributes of the proxied object:
>>> p
[1, 2, 3]
>>> p.pop()
3
>>> p
[1, 2]
"""
def
test_get_descriptors_in_proxy_class
():
...
...
@@ -646,7 +646,7 @@ def test_get_descriptors_in_proxy_class():
>>> p.z = 1
>>> o.z, p.z
(1, 1)
"""
def
test_non_overridable
():
...
...
@@ -659,7 +659,7 @@ def test_non_overridable():
defined in proxy classes take precedence over functions defined
in proxied objects.
>>> class MyProxy(ProxyBase):
... __slots__ = ()
...
...
...
@@ -675,7 +675,7 @@ def test_non_overridable():
>>> p = MyProxy(o)
>>> p.foo()
'MyProxy foo'
"""
def
test_setProxiedObject
():
...
...
@@ -709,7 +709,7 @@ def test_setProxiedObject():
... except TypeError:
... print "TypeError raised"
... else:
... print "Ex
c
pected TypeError not raised"
... print "Expected TypeError not raised"
TypeError raised
"""
...
...
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