def METHOD_NAME():
    class TestOb:
        def fun(self, a, b, c=1):
            pass
    def simple_fun(a, b):
        pass
    t = TestOb()
    e = EventEmitter(type_name="test")
    with pytest.raises(RuntimeError):
        e.connect(t.fun)
    with pytest.raises(RuntimeError):
        e.connect(simple_fun)