コード例 #1
0
ファイル: test_dispatcher.py プロジェクト: durandj/mymcadmin
    def test_add_class(self):
        """
        Tests the add_class method
        """

        dispatcher = Dispatcher()
        dispatcher.add_class(MethodMapClass)

        self.assertDictEqual(
            {"methodmapclass.test1": MethodMapClass.test1, "methodmapclass.test2": MethodMapClass.test2},
            dispatcher.method_handlers,
            "Method map was not updated properly",
        )