From c01c7285db49918066532440f0cb7c7c6c4ab78c Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Thu, 23 Jan 2014 17:05:55 -0500 Subject: [PATCH] Add a test for !modal_link. (imported from commit fac5adf7d596eaca4ea8ed860ddaceb496e72c7a) --- zerver/tests.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zerver/tests.py b/zerver/tests.py index b4dbbaff2c..524d637993 100644 --- a/zerver/tests.py +++ b/zerver/tests.py @@ -4491,6 +4491,16 @@ class BugdownTest(TestCase): '

' ) + def test_in_app_modal_link(self): + msg = '!modal_link(#settings, Settings page)' + converted = bugdown_convert(msg) + self.assertEqual( + converted, + '

' + 'Settings page' + '

' + ) + class UserPresenceTests(AuthedTestCase): def test_get_empty(self): self.login("hamlet@zulip.com")