summaryrefslogtreecommitdiff
path: root/tests/string_lookup
diff options
context:
space:
mode:
authorMads Jensen <mje@inducks.org>2016-09-10 11:36:27 +0200
committerTim Graham <timograham@gmail.com>2016-09-13 10:07:37 -0400
commit0c1f71635f8a3f32195e1573fe929c7d88a78511 (patch)
tree4d8127fde3634dfd3d4ad8451cee140d34070821 /tests/string_lookup
parent8b050cf9dcad3db39cc9ef44906bfc39f5aa3d25 (diff)
downloaddjango-0c1f71635f8a3f32195e1573fe929c7d88a78511.tar.gz
Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual().
Diffstat (limited to 'tests/string_lookup')
-rw-r--r--tests/string_lookup/tests.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/string_lookup/tests.py b/tests/string_lookup/tests.py
index 5f9d519bf5..0bd60a053a 100644
--- a/tests/string_lookup/tests.py
+++ b/tests/string_lookup/tests.py
@@ -78,9 +78,6 @@ class StringLookupTests(TestCase):
"""
a = Article(name='IP test', text='The body', submitted_from='192.0.2.100')
a.save()
- self.assertQuerysetEqual(
- Article.objects.filter(submitted_from__contains='192.0.2'),
- [a], lambda x: x
- )
+ self.assertSequenceEqual(Article.objects.filter(submitted_from__contains='192.0.2'), [a])
# Test that the searches do not match the subnet mask (/32 in this case)
self.assertEqual(Article.objects.filter(submitted_from__contains='32').count(), 0)