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

Method test_callable

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

Source from the content-addressed store, hash-verified

173 return ', '.join('%s:%s' % (k,v) for k,v in args.items())
174
175 def test_callable(self):
176 def plugin(func):
177 def wrapper(*a, **ka):
178 return func(test='me', *a, **ka) + '; tail'
179 return wrapper
180 self.app.install(plugin)
181 self.assertBody('test:me; tail', '/')
182
183
184 def test_apply(self):

Callers

nothing calls this directly

Calls 2

installMethod · 0.80
assertBodyMethod · 0.80

Tested by

no test coverage detected