Permalink
Browse files

Fixed an ES test that seems like a change in behavior in recent ES ve…

…rsions.
  • Loading branch information...
1 parent e4894e0 commit 864c882f08b4e15aa7e96d91ef5abb7cf1a9bd77 @jezdez jezdez committed Jun 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/elasticsearch_tests/tests/elasticsearch_backend.py
@@ -319,7 +319,8 @@ def test_search(self):
self.assertEqual(self.sb.search('', highlight=True), {'hits': 0, 'results': []})
self.assertEqual(self.sb.search('Index', highlight=True)['hits'], 3)
- self.assertEqual([result.highlighted for result in self.sb.search('Index', highlight=True)['results']], [[u'<em>Indexed</em>!\n2 '], [u'<em>Indexed</em>!\n1 '], [u'<em>Indexed</em>!\n3 ']])
+ self.assertEqual([result.highlighted for result in self.sb.search('Index', highlight=True)['results']],
+ [[u'<em>Indexed</em>!\n2'], [u'<em>Indexed</em>!\n1'], [u'<em>Indexed</em>!\n3']])
self.assertEqual(self.sb.search('Indx')['hits'], 0)
self.assertEqual(self.sb.search('indax')['spelling_suggestion'], None)

0 comments on commit 864c882

Please sign in to comment.