import unittest
from app import markdown_links
class T(unittest.TestCase):
 def test_all(self):
  s='See [Docs](https://x.test/a_(b)) and ![Logo](img.png) plus [Home](/home).'
  self.assertEqual(markdown_links(s),[('Docs','https://x.test/a_(b)'),('Home','/home')])
  self.assertEqual(markdown_links('none'),[])
if __name__=='__main__': unittest.main()
