diff --git a/zerver/tests/test_messages.py b/zerver/tests/test_messages.py index eb7cd69837..9165f7d37c 100644 --- a/zerver/tests/test_messages.py +++ b/zerver/tests/test_messages.py @@ -348,6 +348,17 @@ class StreamMessagesTest(ZulipTestCase): self.assert_length(queries, 7) + def test_stream_message_unicode(self): + # type: () -> None + user_profile = get_user_profile_by_email("iago@zulip.com") + self.subscribe_to_stream(user_profile.email, "Denmark") + self.send_message("hamlet@zulip.com", "Denmark", Recipient.STREAM, + content="whatever", subject="my topic") + message = most_recent_message(user_profile) + self.assertEqual(str(message), + u'>>') + def test_message_mentions(self): # type: () -> None user_profile = get_user_profile_by_email("iago@zulip.com")