

def test_w_callable_non_func_method(self):
    from zope.interface.interface import Method
    from zope.interface import Interface
    from zope.interface import implementer

    class QuasiMethod(Method):

        def __call__(self, *args, **kw):
            pass

    class QuasiCallable(object):

        def __call__(self, *args, **kw):
            pass

    class ICurrent(Interface):
        attr = QuasiMethod('This is callable')

    @implementer(ICurrent)
    class Current():
        attr = QuasiCallable()
    attr._callFUT(ICurrent, Current)

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/zope/interface/tests/test_verify.py Test_verifyClass.test_w_callable_non_func_method/VarMisuse@127/164 `self`->`attr`