diff --git a/zerver/tests/test_bugdown.py b/zerver/tests/test_bugdown.py index 251955dac7..6eae5d1835 100644 --- a/zerver/tests/test_bugdown.py +++ b/zerver/tests/test_bugdown.py @@ -343,6 +343,15 @@ class BugdownTest(TestCase): self.assertEqual(converted, '
We should fix #224 and #115, but not issue#124 or #1124z or trac #15 today.
') self.assertEqual(converted_subject, [u'https://trac.zulip.net/ticket/444']) + def test_realm_patterns_negative(self): + realm = get_realm('zulip.com') + RealmFilter(realm=realm, pattern=r"#(?P