コード例 #1
0
    def test_from_stream(self):
        load_mapping(self.app, stream="""
        /foo:
            GET: test.views.dummy_handler
            PUT: test.views.dummy_handler

        /bar:
            name: helloworld
            class: test.views.Dummy
        """)
        assert self.views_count() == 3
コード例 #2
0
 def test_from_file(self):
     load_mapping(self.app, "uris.yml")
     assert self.views_count() == 3