Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Zope
Commits
2ee28e32
Commit
2ee28e32
authored
Apr 05, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added test for empty mapping returns all.
parent
1eeccb32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
lib/python/Products/ZCatalog/tests/testCatalog.py
lib/python/Products/ZCatalog/tests/testCatalog.py
+9
-2
No files found.
lib/python/Products/ZCatalog/tests/testCatalog.py
View file @
2ee28e32
...
...
@@ -2,11 +2,14 @@
"""
Testsuite for testing Catalogs
$Id: testCatalog.py,v 1.
3 2001/03/23 23:34:14
chrism Exp $
$Id: testCatalog.py,v 1.
4 2001/04/05 16:15:36
chrism Exp $
Andreas Jung, andreas@digicool.com
$Log: testCatalog.py,v $
Revision 1.4 2001/04/05 16:15:36 chrism
added test for empty mapping returns all.
Revision 1.3 2001/03/23 23:34:14 chrism
Merge from branch.
...
...
@@ -788,6 +791,11 @@ class TestCatalogObject(unittest.TestCase):
a
=
self
.
_catalog
()
assert
len
(
a
)
==
upper
,
'length should be %s, its %s'
%
(
upper
,
len
(
a
))
def
checkEmptyMappingReturnsAll
(
self
):
upper
=
self
.
upper
a
=
self
.
_catalog
({})
assert
len
(
a
)
==
upper
,
'length should be %s, its %s'
%
(
upper
,
len
(
a
))
def
checkFieldIndexLength
(
self
):
a
=
self
.
_catalog
(
att1
=
'att1'
)
assert
len
(
a
)
==
self
.
upper
,
'should be %s, but is %s'
%
(
self
.
upper
,
...
...
@@ -847,7 +855,6 @@ class TestCatalogObject(unittest.TestCase):
for
x
in
range
(
0
,
self
.
upper
):
self
.
_catalog
.
uncatalogObject
(
`x`
)
class
objRS
(
ExtensionClass
.
Base
):
def
__init__
(
self
,
num
):
...
...
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