# Path: tests/markdown_test/test_utils.py
# class MarkdownTest(TemplarTest):
#     def setUp(self):
#         pass
# 
#     def tearDown(self):
#         pass
# 
#     def assertMarkdown(self, markdown, output):
#         markdown = self.dedent(markdown)
#         output = self.dedent(output)
#         try:
#             self.assertEqual(output + '\n', convert(markdown) + '\n')
#         except AssertionError:
#             raise
# 
#     def assertMarkdownNotEqual(self, markdown, output):
#         markdown = self.dedent(markdown)
#         output = self.dedent(output)
#         try:
#             self.assertNotEqual(output, convert(markdown))
#         except AssertionError:
#             raise
# 
#     def assertMarkdownIgnoreWS(self, markdown, output):
#         markdown = self.dedent(markdown)
#         try:
#             self.assertEqual(self.ignoreWhitespace(output),
#                              self.ignoreWhitespace(convert(markdown)))
#         except AssertionError:
#             raise


from tests.markdown_test.test_utils import MarkdownTest
    def testConsecutiveReferences(self):
        text = """
        A [link here][id] here, [second link][id1]

        [id]: path/to/resource
        [id1]: path/to/resource
        """
        expect = """
        <p>A <a href="path/to/resource">link here</a> here, <a href="path/to/resource">second link</a></p>
        """
        self.assertMarkdown(text, expect)

    def testConsecutiveLinks(self):
        text = """
        [link here][]
        [another link here](path/to/url)

        [link here]: another/path
        """
        expect = """
        <p><a href="another/path">link here</a>
        <a href="path/to/url">another link here</a></p>
        """
        self.assertMarkdown(text, expect)

    def testNewline(self):
        text = """
        [link
        here][]


# Path: tests/markdown_test/test_utils.py
# class MarkdownTest(TemplarTest):
#     def setUp(self):
#         pass
# 
#     def tearDown(self):
#         pass
# 
#     def assertMarkdown(self, markdown, output):
#         markdown = self.dedent(markdown)
#         output = self.dedent(output)
#         try:
#             self.assertEqual(output + '\n', convert(markdown) + '\n')
#         except AssertionError:
#             raise
# 
#     def assertMarkdownNotEqual(self, markdown, output):
#         markdown = self.dedent(markdown)
#         output = self.dedent(output)
#         try:
#             self.assertNotEqual(output, convert(markdown))
#         except AssertionError:
#             raise
# 
#     def assertMarkdownIgnoreWS(self, markdown, output):
#         markdown = self.dedent(markdown)
#         try:
#             self.assertEqual(self.ignoreWhitespace(output),
#                              self.ignoreWhitespace(convert(markdown)))
#         except AssertionError:
#             raise


# Path: tests/markdown_test/link_test.py
from tests.markdown_test.test_utils import MarkdownTest

    def testConsecutiveReferences(self):
        text = """
        A [link here][id] here, [second link][id1]

        [id]: path/to/resource
        [id1]: path/to/resource
        """
        expect = """
        <p>A <a href="path/to/resource">link here</a> here, <a href="path/to/resource">second link</a></p>
        """
        self.assertMarkdown(text, expect)

    def testConsecutiveLinks(self):
        text = """
        [link here][]
        [another link here](path/to/url)

        [link here]: another/path
        """
        expect = """
        <p><a href="another/path">link here</a>
        <a href="path/to/url">another link here</a></p>
        """
        self.assertMarkdown(text, expect)

    def testNewline(self):
        text = """
        [link
        here][]


        [link here]: path/to/url