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
0aa59c23
Commit
0aa59c23
authored
Jan 31, 2005
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
numObjects() -> indexSize()
parent
082e6d02
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py
...Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py
+1
-1
lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py
...ucts/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py
+1
-1
No files found.
lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py
View file @
0aa59c23
...
@@ -116,7 +116,7 @@ class TestCase( unittest.TestCase ):
...
@@ -116,7 +116,7 @@ class TestCase( unittest.TestCase ):
assert
len
(
self
.
_index
)
==
len
(
values
)
-
1
#'abce' is duplicate
assert
len
(
self
.
_index
)
==
len
(
values
)
-
1
#'abce' is duplicate
assert
len
(
self
.
_index
.
referencedObjects
()
)
==
len
(
values
)
assert
len
(
self
.
_index
.
referencedObjects
()
)
==
len
(
values
)
self
.
assertEqual
(
self
.
_index
.
numObjects
(),
len
(
values
)
-
1
)
self
.
assertEqual
(
self
.
_index
.
indexSize
(),
len
(
values
)
-
1
)
assert
self
.
_index
.
getEntryForObject
(
1234
)
is
None
assert
self
.
_index
.
getEntryForObject
(
1234
)
is
None
assert
(
self
.
_index
.
getEntryForObject
(
1234
,
self
.
_marker
)
assert
(
self
.
_index
.
getEntryForObject
(
1234
,
self
.
_marker
)
...
...
lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py
View file @
0aa59c23
...
@@ -142,7 +142,7 @@ class TestKeywordIndex( unittest.TestCase ):
...
@@ -142,7 +142,7 @@ class TestKeywordIndex( unittest.TestCase ):
assert
(
self
.
_index
.
getEntryForObject
(
1234
,
self
.
_marker
)
assert
(
self
.
_index
.
getEntryForObject
(
1234
,
self
.
_marker
)
is
self
.
_marker
)
is
self
.
_marker
)
self
.
_index
.
unindex_object
(
1234
)
# nothrow
self
.
_index
.
unindex_object
(
1234
)
# nothrow
self
.
assertEqual
(
self
.
_index
.
numObjects
(),
len
(
values
)
-
1
)
self
.
assertEqual
(
self
.
_index
.
indexSize
(),
len
(
values
)
-
1
)
for
k
,
v
in
values
:
for
k
,
v
in
values
:
entry
=
self
.
_index
.
getEntryForObject
(
k
)
entry
=
self
.
_index
.
getEntryForObject
(
k
)
...
...
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