Add a test for !modal_link.

(imported from commit fac5adf7d596eaca4ea8ed860ddaceb496e72c7a)
This commit is contained in:
Jessica McKellar 2014-01-23 17:05:55 -05:00
parent ee7a1f0953
commit c01c7285db
1 changed files with 10 additions and 0 deletions

View File

@ -4491,6 +4491,16 @@ class BugdownTest(TestCase):
'</p>'
)
def test_in_app_modal_link(self):
msg = '!modal_link(#settings, Settings page)'
converted = bugdown_convert(msg)
self.assertEqual(
converted,
'<p>'
'<a data-toggle="modal" href="#settings" title="#settings">Settings page</a>'
'</p>'
)
class UserPresenceTests(AuthedTestCase):
def test_get_empty(self):
self.login("hamlet@zulip.com")