コード例 #1
0
ファイル: test_dream.py プロジェクト: ieure/dream
 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)
コード例 #2
0
ファイル: test_dream.py プロジェクト: ieure/dream
 def setUp(self):
     self.app = App()
     endpoints(self.app, '/endpoints')