# Path: mistletoe/block_token.py
# class Document(BlockToken):
#     """
#     Document token.
#     """
#     def __init__(self, lines):
#         if isinstance(lines, str):
#             lines = lines.splitlines(keepends=True)
#         lines = [line if line.endswith('\n') else '{}\n'.format(line) for line in lines]
#         self.footnotes = {}
#         global _root_node
#         _root_node = self
#         span_token._root_node = self
#         self.children = tokenize(lines)
#         span_token._root_node = None
#         _root_node = None


from unittest import TestCase
from mistletoe.block_token import Document
"""
Base classes for tests.
"""


class BaseRendererTest(TestCase):
    """
    Base class for tests of renderers.
    """
    def setUp(self):
        self.maxDiff = None
    
    def markdownResultTest(self, markdown, expected):

# Path: mistletoe/block_token.py
# class Document(BlockToken):
#     """
#     Document token.
#     """
#     def __init__(self, lines):
#         if isinstance(lines, str):
#             lines = lines.splitlines(keepends=True)
#         lines = [line if line.endswith('\n') else '{}\n'.format(line) for line in lines]
#         self.footnotes = {}
#         global _root_node
#         _root_node = self
#         span_token._root_node = self
#         self.children = tokenize(lines)
#         span_token._root_node = None
#         _root_node = None


# Path: test/base_test.py
from unittest import TestCase
from mistletoe.block_token import Document

"""
Base classes for tests.
"""


class BaseRendererTest(TestCase):
    """
    Base class for tests of renderers.
    """
    def setUp(self):
        self.maxDiff = None
    
    def markdownResultTest(self, markdown, expected):

        output = self.renderer.render(Document(markdown))