MCPcopy Create free account
hub / github.com/bottlepy/bottle / test_setup

Method test_setup

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

Source from the content-addressed store, hash-verified

203 self.assertBody('Hello', '/')
204
205 def test_setup(self):
206 class Plugin(object):
207 def __call__(self, func): return func
208 def setup(self, app): self.app = app
209 plugin = self.app.install(Plugin())
210 self.assertEqual(getattr(plugin, 'app', None), self.app)
211
212 def test_close(self):
213 class Plugin(object):

Callers

nothing calls this directly

Calls 2

PluginClass · 0.85
installMethod · 0.80

Tested by

no test coverage detected