MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / test_narrow

Method test_narrow

test_haystack/test_managers.py:178–181  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

176 self.assertEqual(len(sqs.query.query_facets), 1)
177
178 def test_narrow(self):
179 sqs = self.search_index.objects.narrow("content:foo")
180 self.assertTrue(isinstance(sqs, SearchQuerySet))
181 self.assertSetEqual(set(["content:foo"]), sqs.query.narrow_queries)
182
183 def test_raw_search(self):
184 self.assertEqual(len(self.search_index.objects.raw_search("foo")), 23)

Callers

nothing calls this directly

Calls 1

narrowMethod · 0.45

Tested by

no test coverage detected