示例#1
0
 def testLink(self):
   link_text = 'Devil home'
   link_target = (
       'https://chromium.googlesource.com/catapult.git/+/HEAD/devil')
   expected = ('[Devil home]'
               '(https://chromium.googlesource.com/catapult.git/+/HEAD/devil)')
   self.assertEquals(expected, markdown.md_link(link_text, link_target))
示例#2
0
 def testLink(self):
     link_text = 'Devil home'
     link_target = (
         'https://github.com/catapult-project/catapult/tree/master/devil')
     expected = (
         '[Devil home]'
         '(https://github.com/catapult-project/catapult/tree/master/devil)')
     self.assertEquals(expected, markdown.md_link(link_text, link_target))
 def testLink(self):
   link_text = 'Devil home'
   link_target = (
       'https://github.com/catapult-project/catapult/tree/master/devil')
   expected = (
       '[Devil home]'
       '(https://github.com/catapult-project/catapult/tree/master/devil)')
   self.assertEquals(expected, markdown.md_link(link_text, link_target))
示例#4
0
 def testLinkTextContainsBracket(self):
   link_text = 'foo [] bar'
   link_target = 'https://www.google.com'
   expected = '[foo [\\] bar](https://www.google.com)'
   self.assertEquals(expected, markdown.md_link(link_text, link_target))
 def testLinkTextContainsBracket(self):
   link_text = 'foo [] bar'
   link_target = 'https://www.google.com'
   expected = '[foo [\\] bar](https://www.google.com)'
   self.assertEquals(expected, markdown.md_link(link_text, link_target))