示例#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')