Пример #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
Пример #2
0
    def test_view_exists(self):
        view = self.container.make('ViewClass')

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