Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
9b883489279f
Commit
a4430d6f
authored
Apr 12, 2019
by
Laurent Peuch
Browse files
DeprecationWarning: Please use assertEqual instead.
parent
9850a9b86c92
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb/test/unittest_utils.py
View file @
9b883489
...
...
@@ -167,7 +167,7 @@ class TestQueryCache(TestCase):
'permanentcount'
:
5
})
keys
=
sorted
(
c
)
for
x
in
range
(
10
):
self
.
assertEqual
s
(
x
,
keys
[
x
])
self
.
assertEqual
(
x
,
keys
[
x
])
def
test_items
(
self
):
"""
...
...
@@ -188,8 +188,8 @@ class TestQueryCache(TestCase):
'permanentcount'
:
5
})
content
=
sorted
(
c
.
items
())
for
x
in
range
(
10
):
self
.
assertEqual
s
(
x
,
content
[
x
][
0
])
self
.
assertEqual
s
(
x
,
content
[
x
][
1
])
self
.
assertEqual
(
x
,
content
[
x
][
0
])
self
.
assertEqual
(
x
,
content
[
x
][
1
])
class
UStringIOTC
(
TestCase
):
...
...
Write
Preview
Supports
Markdown
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