MCPcopy Index your code
hub / github.com/bottlepy/bottle / test_instance_method_wrapper

Method test_instance_method_wrapper

test/test_plugins.py:196–203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194 self.assertBody('test:plugin.cfg; tail', '/')
195
196 def test_instance_method_wrapper(self):
197 class Plugin(object):
198 api=2
199 def apply(self, callback, route):
200 return self.b
201 def b(self): return "Hello"
202 self.app.install(Plugin())
203 self.assertBody('Hello', '/')
204
205 def test_setup(self):
206 class Plugin(object):

Callers

nothing calls this directly

Calls 3

PluginClass · 0.85
installMethod · 0.80
assertBodyMethod · 0.80

Tested by

no test coverage detected