def test_new_stream(self) -> None:
    user_profile = self.example_user('hamlet')
    stream_name = 'New stream'
    self.subscribe(user_profile, stream_name)
    self.login(user_profile.email)
    result = self._get_home_page(stream=stream_name)
    page_params = self._get_page_params(result)
    self.assertEqual(page_params['narrow_stream'], stream_name)
    self.assertEqual(page_params['narrow'], [dict(operator='stream', operand=stream_name)])
    self.assertEqual(page_params['pointer'], (- 1))
    self.assertEqual(page_params['max_message_id'], (- 1))
    self.assertEqual(page_params['have_initial_messages'], False)
def test_new_stream(self) -> None:
    user_profile = self.example_user('hamlet')
    stream_name = 'New stream'
    self.subscribe(user_profile, stream_name)
    self.login(user_profile.email)
    result = self._get_home_page(stream=stream_name)
    page_params = self._get_page_params(result)
    self.assertEqual(page_params['narrow_stream'], stream_name)
    self.assertEqual(page_params['narrow'], [dict(operator='stream', operand=stream_name)])
    self.assertEqual(page_params['pointer'], (- 1))
    self.assertEqual(page_params['max_message_id'], (- 1))
    self.assertEqual(page_params['have_initial_messages'], False)