summaryrefslogtreecommitdiff
path: root/tests/httpwrappers
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-03-17 07:51:48 -0400
committerGitHub <noreply@github.com>2017-03-17 07:51:48 -0400
commit6b4f018b2b3478d2a4a441ed52d43f6268ac89f3 (patch)
tree21a1573a6d8a1e7ee8554adc318174ffda0bf8bd /tests/httpwrappers
parente32265de1a68361ea078f49877ccb0f742508728 (diff)
downloaddjango-6b4f018b2b3478d2a4a441ed52d43f6268ac89f3.tar.gz
Replaced type-specific assertions with assertEqual().
Python docs say, "it's usually not necessary to invoke these methods directly."
Diffstat (limited to 'tests/httpwrappers')
-rw-r--r--tests/httpwrappers/tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py
index b3ad3b49dd..48a30a1b74 100644
--- a/tests/httpwrappers/tests.py
+++ b/tests/httpwrappers/tests.py
@@ -143,10 +143,10 @@ class QueryDictTests(SimpleTestCase):
self.assertEqual(q['foo'], 'another')
self.assertIn('foo', q)
- self.assertListEqual(sorted(q.items()), [('foo', 'another'), ('name', 'john')])
- self.assertListEqual(sorted(q.lists()), [('foo', ['bar', 'baz', 'another']), ('name', ['john'])])
- self.assertListEqual(sorted(q.keys()), ['foo', 'name'])
- self.assertListEqual(sorted(q.values()), ['another', 'john'])
+ self.assertCountEqual(q.items(), [('foo', 'another'), ('name', 'john')])
+ self.assertCountEqual(q.lists(), [('foo', ['bar', 'baz', 'another']), ('name', ['john'])])
+ self.assertCountEqual(q.keys(), ['foo', 'name'])
+ self.assertCountEqual(q.values(), ['another', 'john'])
q.update({'foo': 'hello'})
self.assertEqual(q['foo'], 'hello')