def test_has_prefix(self): """Make sure endpoint URLs include the prefix.""" prefix = "/foo" app = App(prefix=prefix) endpoints(app, "/endpoints") for endpoint in app.endpoints().iterkeys(): self.assertTrue(prefix in endpoint)
def setUp(self): self.app = App() endpoints(self.app, '/endpoints')