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", )