def test_method_takes_not_enough_args(self):
from zope.interface import Interface
from zope.interface import implementer
from zope.interface.exceptions import BrokenMethodImplementation
class ICurrent(Interface):
def method(a):
pass
@implementer(ICurrent)
class Current(object):
def method(self):
pass
self.assertRaises(BrokenMethodImplementation,
self._callFUT, ICurrent, Current)
评论列表
文章目录