diff options
Diffstat (limited to 'tests/string_lookup/tests.py')
-rw-r--r-- | tests/string_lookup/tests.py | 5 |
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) |