

def test_class_has_nonmethod_for_method(self):
    from zope.interface import Interface
    from zope.interface import implementer
    from zope.interface.exceptions import BrokenMethodImplementation

    class ICurrent(Interface):

        def method():
            pass

    @implementer(ICurrent)
    class Current():
        method = 1
    self.assertRaises(BrokenMethodImplementation, self._callFUT, ICurrent, Current)

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/zope/interface/tests/test_verify.py Test_verifyClass.test_class_has_nonmethod_for_method/original