Skip to content

Commit 2a921b6

Browse files
committed
Added a test to verify a previous change to the simple backend.
1 parent 03fc99a commit 2a921b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/simple_tests/tests/simple_backend.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def test_search(self):
4646

4747
self.assertEqual(self.backend.search(u'should be a string')['hits'], 1)
4848
self.assertEqual([result.pk for result in self.backend.search(u'should be a string')['results']], [8])
49+
# Ensure the results are ``SearchResult`` instances...
50+
self.assertEqual(self.backend.search(u'should be a string')['results'][0].score, 0)
4951

5052
self.assertEqual(self.backend.search(u'index document')['hits'], 6)
5153
self.assertEqual([result.pk for result in self.backend.search(u'index document')['results']], [2, 3, 15, 16, 17, 18])

0 commit comments

Comments
 (0)