예제 #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')