[fix] pdbe test

This commit is contained in:
Adam Tauber 2017-12-01 20:58:40 +01:00
parent 1088c2a75d
commit 9e79ad4bde

View File

@ -105,5 +105,5 @@ class TestPdbeEngine(SearxTestCase):
results = pdbe.response(response)
self.assertEqual(type(results), list)
self.assertEqual(len(results), 1)
self.assertEqual(results[0]['title'], 'OBSOLETE ENTRY TEST (OBSOLETE)')
self.assertTrue(results[0]['content'].startswith('<em>This entry has been superseded by'))
self.assertEqual(results[0]['title'], 'OBSOLETE ENTRY TEST (OBSOLETE)')
self.assertTrue(results[0]['content'].startswith('This entry has been superseded by'))