def test_call_each(self):
     plugins = PytestPlugins()
     class My:
         def method(self, arg):
             pass
     plugins.register(My())
     py.test.raises(TypeError, 'plugins.call_each("method")')
     l = plugins.call_each("method", arg=42)
     assert l == []
     py.test.raises(TypeError, 'plugins.call_each("method", arg=42, s=13)')