# Path: nbxmpp/dispatcher.py
# class StanzaDispatcher(Observable):
#     def __init__(self, client):
#     def set_dispatch_callback(self, callback):
#     def get_module(self, name):
#     def _register_modules(self):
#     def reset_parser(self):
#     def replace_non_character(self, data):
#     def process_data(self, data):
#     def _register_namespace(self, xmlns):
#     def _register_protocol(self, tag_name, protocol, xmlns=None):
#     def register_handler(self, handler):
#     def unregister_handler(self, handler):
#     def _default_handler(self, stanza):
#     def dispatch(self, stanza):
#     def add_callback_for_id(self, id_, func, timeout, user_data):
#     def _timeout_check(self):
#     def _remove_timeout_source(self):
#     def remove_iq_callback(self, id_):
#     def clear_iq_callbacks(self):
#     def cleanup(self):


import unittest
from unittest.mock import Mock
from nbxmpp import dispatcher



class XMLVulnerability(unittest.TestCase):

    def setUp(self):
        self.stream = Mock()
        self.stream.is_websocket = False

# Path: nbxmpp/dispatcher.py
# class StanzaDispatcher(Observable):
#     def __init__(self, client):
#     def set_dispatch_callback(self, callback):
#     def get_module(self, name):
#     def _register_modules(self):
#     def reset_parser(self):
#     def replace_non_character(self, data):
#     def process_data(self, data):
#     def _register_namespace(self, xmlns):
#     def _register_protocol(self, tag_name, protocol, xmlns=None):
#     def register_handler(self, handler):
#     def unregister_handler(self, handler):
#     def _default_handler(self, stanza):
#     def dispatch(self, stanza):
#     def add_callback_for_id(self, id_, func, timeout, user_data):
#     def _timeout_check(self):
#     def _remove_timeout_source(self):
#     def remove_iq_callback(self, id_):
#     def clear_iq_callbacks(self):
#     def cleanup(self):


# Path: test/unit/test_xml_vulnerability.py
import unittest
from unittest.mock import Mock
from nbxmpp import dispatcher




class XMLVulnerability(unittest.TestCase):

    def setUp(self):
        self.stream = Mock()
        self.stream.is_websocket = False

        self.dispatcher = dispatcher.StanzaDispatcher(self.stream)