test_narrow: Use a better assert for easier debugging.

This should provide much better error messages.
This commit is contained in:
Tim Abbott 2018-02-21 13:18:42 -08:00
parent c8f034e9a0
commit faa3c275de
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ class NarrowBuilderTest(ZulipTestCase):
if params is not None:
actual_params = query.compile().params
self.assertEqual(actual_params, params)
self.assertTrue(where_clause in str(query))
self.assertIn(where_clause, str(query))
def _build_query(self, term: Dict[str, Any]) -> Query:
return self.builder.add_term(self.raw_query, term)