Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Acquisition
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
Acquisition
Commits
ea7ef69d
Commit
ea7ef69d
authored
Oct 30, 2014
by
Tres Seaver
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better coverage for LP #1387363.
parent
cdfad147
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
src/Acquisition/tests.py
src/Acquisition/tests.py
+11
-1
No files found.
src/Acquisition/tests.py
View file @
ea7ef69d
...
...
@@ -2527,7 +2527,17 @@ class TestAcquire(unittest.TestCase):
def
test_explicit_wrapper_false
(
self
):
self
.
assertEqual
(
self
.
a
.
b
.
c
.
aq_acquire
(
'z'
,
explicit
=
False
),
3
)
def
test_falls_back_to_default
(
self
):
def
test_wrapper_falls_back_to_default
(
self
):
self
.
assertEqual
(
self
.
acquire
(
self
.
a
.
b
.
c
,
'nonesuch'
,
default
=
4
),
4
)
def
test_no_wrapper_but___parent___falls_back_to_default
(
self
):
class
NotWrapped
(
object
):
pass
child
=
NotWrapped
()
parent
=
child
.
__parent__
=
NotWrapped
()
self
.
assertEqual
(
self
.
acquire
(
child
,
'nonesuch'
,
default
=
4
),
4
)
def
test_unwrapped_falls_back_to_default
(
self
):
self
.
assertEqual
(
self
.
acquire
(
object
(),
'nonesuch'
,
default
=
4
),
4
)
...
...
Kirill Smelkov
@kirr
mentioned in commit
6fb96530
·
Sep 19, 2016
mentioned in commit
6fb96530
mentioned in commit 6fb96530cb23074f21f6a38302aee4d4bd28fd80
Toggle commit list
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