# Path: wdom/util.py
# def reset() -> None:
#     """Reset all wdom objects.
# 
#     This function clear all connections, elements, and resistered custom
#     elements. This function also makes new document/application and set them.
#     """
#     from wdom.document import get_new_document, set_document
#     from wdom.element import Element
#     from wdom.server import _tornado
#     from wdom.window import customElements
# 
#     set_document(get_new_document())
#     _tornado.connections.clear()
#     _tornado.set_application(_tornado.Application())
#     Element._elements_with_id.clear()
#     Element._element_buffer.clear()
#     customElements.reset()
# 
# Path: wdom/document.py
# def get_document() -> Document:
#     """Get current root document object.
# 
#     :rtype: Document
#     """
#     return rootDocument


import unittest
from wdom.util import reset
from wdom.document import get_document
        from wdom.server import _tornado
#!/usr/bin/env python3
# -*- coding: utf-8 -*-




class TestInitialize(unittest.TestCase):
    def test_initialize(self):
        old_doc = get_document()
        old_app_tornado = _tornado.get_app()

# Path: wdom/util.py
# def reset() -> None:
#     """Reset all wdom objects.
# 
#     This function clear all connections, elements, and resistered custom
#     elements. This function also makes new document/application and set them.
#     """
#     from wdom.document import get_new_document, set_document
#     from wdom.element import Element
#     from wdom.server import _tornado
#     from wdom.window import customElements
# 
#     set_document(get_new_document())
#     _tornado.connections.clear()
#     _tornado.set_application(_tornado.Application())
#     Element._elements_with_id.clear()
#     Element._element_buffer.clear()
#     customElements.reset()
# 
# Path: wdom/document.py
# def get_document() -> Document:
#     """Get current root document object.
# 
#     :rtype: Document
#     """
#     return rootDocument


# Path: tests/test_testing.py
import unittest
from wdom.util import reset
from wdom.document import get_document
        from wdom.server import _tornado

#!/usr/bin/env python3
# -*- coding: utf-8 -*-




class TestInitialize(unittest.TestCase):
    def test_initialize(self):
        old_doc = get_document()
        old_app_tornado = _tornado.get_app()

        reset()