test_home: Fix broken narrow parsing exception test.

This commit is contained in:
Tim Abbott 2018-05-20 19:06:14 -07:00
parent 44b3aeb08d
commit 451b12d0b2
1 changed files with 2 additions and 1 deletions

View File

@ -355,7 +355,8 @@ class HomeTest(ZulipTestCase):
self.login(email) self.login(email)
with patch('logging.exception') as mock: with patch('logging.exception') as mock:
result = self._get_home_page(stream='Invalid Stream') result = self._get_home_page(stream='Invalid Stream')
mock.assert_called_once_with('Narrow parsing') mock.assert_called_once()
self.assertEqual(mock.call_args_list[0][0][0], "Narrow parsing exception")
self._sanity_check(result) self._sanity_check(result)
def test_bad_pointer(self) -> None: def test_bad_pointer(self) -> None: