# 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
        expect = "<p>This <strong><em>is a\nstrong</em></strong> here</p>"
        self.assertMarkdown(text, expect)

    def testUnderscoreInAsterisk(self):
        text = "This ***is a strong___ here***"
        expect = "<p>This <strong><em>is a strong___ here</em></strong></p>"
        self.assertMarkdown(text, expect)

    def testAsteriskInStrongEm(self):
        text = "This ***is a strong em* here***"
        expect = "<p>This <strong><em>is a strong em* here</em></strong></p>"
        self.assertMarkdown(text, expect)

class CodeTest(MarkdownTest):
    def testBasic(self):
        text = "This is a `code tag`"
        expect = "<p>This is a <code>code tag</code></p>"
        self.assertMarkdown(text, expect)

    def testNewline(self):
        text = "This `is a\ncode tag` here"
        expect = "<p>This <code>is a\ncode tag</code> here</p>"
        self.assertMarkdown(text, expect)

    def testPreserveAsterisks(self):
        text = "This `should *not* be` emphasized"
        expect = "<p>This <code>should *not* be</code> emphasized</p>"
        self.assertMarkdown(text, expect)

        text = "This `should **not** be` emphasized"

# 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/emphasis_test.py
from tests.markdown_test.test_utils import MarkdownTest

        expect = "<p>This <strong><em>is a\nstrong</em></strong> here</p>"
        self.assertMarkdown(text, expect)

    def testUnderscoreInAsterisk(self):
        text = "This ***is a strong___ here***"
        expect = "<p>This <strong><em>is a strong___ here</em></strong></p>"
        self.assertMarkdown(text, expect)

    def testAsteriskInStrongEm(self):
        text = "This ***is a strong em* here***"
        expect = "<p>This <strong><em>is a strong em* here</em></strong></p>"
        self.assertMarkdown(text, expect)

class CodeTest(MarkdownTest):
    def testBasic(self):
        text = "This is a `code tag`"
        expect = "<p>This is a <code>code tag</code></p>"
        self.assertMarkdown(text, expect)

    def testNewline(self):
        text = "This `is a\ncode tag` here"
        expect = "<p>This <code>is a\ncode tag</code> here</p>"
        self.assertMarkdown(text, expect)

    def testPreserveAsterisks(self):
        text = "This `should *not* be` emphasized"
        expect = "<p>This <code>should *not* be</code> emphasized</p>"
        self.assertMarkdown(text, expect)

        text = "This `should **not** be` emphasized"

        expect = "<p>This <code>should **not** be</code> emphasized</p>"