示例#1
0
def test_view_extends_without_dictionary_parameters():
    container = App()

    view = View(container)
    view.share({'test': 'test'})

    container.bind('View', view.render)

    view = container.make('View')

    assert view('test').rendered_template == 'test'
示例#2
0
    def test_view_extends_without_dictionary_parameters(self):
        view = self.container.make('ViewClass')
        view.share({'test': 'test'})
        view = self.container.make('View')

        assert view('test').rendered_template == 'test'