]> git.phdru.name Git - m_librarian.git/blobdiff - tests/test_search.py
Fix test
[m_librarian.git] / tests / test_search.py
index 2ad86c6ee9f0b285d2c06f64b25d7ad45ced9a43..1cb55b61d306bf12d18a9427e0c00dd15d3f6fb8 100755 (executable)
@@ -10,13 +10,14 @@ class TestSearch(TestCase):
     def test_search_authors(self):
         self.import_inpx('test.inpx')
         self.assertEqual(
-            search_authors('exact', True, {'surname': u'Друг'}).count(), 1)
+            search_authors('full', True, {'surname': u'Друг'}).count(), 1)
         self.assertEqual(
             search_authors('start', True, {'surname': u'Друг'}).count(), 2)
         self.assertEqual(
             search_authors('substring', True, {'surname': u'Друг'}).count(), 2)
         self.assertEqual(
-            search_authors('substring', False, {'surname': u'друг'}).count(), 3)
+            search_authors('substring', False, {'surname': u'друг'}).count(),
+            3)
 
 
 if __name__ == "__main__":