Skip to content
Browse files

Add some of the new comparators to QL tests

  • Loading branch information...
1 parent 875c4ef commit 1453c13fca88dfee8c22abc3596a2c30179b0ade @thomasw committed Nov 24, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 querylist/tests/querylist_tests.py
View
5 querylist/tests/querylist_tests.py
@@ -82,7 +82,7 @@ def test_works_correctly_with_multiple_lookups(self):
def test_works_correctly_with_relational_lookups(self):
self.assertEqual(
- self.ql.get(meta__keywords=['Catsup', 'dogs']), self.src_list[1])
+ self.ql.get(meta__keywords__contains='Catsup'), self.src_list[1])
class QueryListExcludeMethodTests(QueryListMethodTests):
@@ -91,7 +91,8 @@ def test_excludes_the_matching_set_of_elements(self):
self.assertEqual(self.ql.exclude(published=True), [self.src_list[2]])
def test_returns_an_empty_querylist_if_no_items_match(self):
- self.assertFalse(self.ql.exclude(meta__description='My cool site'))
+ self.assertFalse(
+ self.ql.exclude(meta__description__icontains='cool site'))
class QueryListLimitMethodTests(QueryListMethodTests):

0 comments on commit 1453c13

Please sign in to comment.
Something went wrong with that request. Please try again.