Beispiel #1
0
    def test_global_view_exists(self):
        view = self.container.make('ViewClass')

        assert view.exists('/resources/templates/index')
        assert view.exists('/resources/templates/not_available') is False
Beispiel #2
0
    def test_view_exists(self):
        view = self.container.make('ViewClass')

        assert view.exists('index')
        assert view.exists('not_available') is False