def METHOD_NAME(screen: Screen):
    @ui.page('/')
    def page():
        raise RuntimeError('some exception')
    screen.open('/')
    screen.should_contain('500')
    screen.should_contain('Server error')
    screen.assert_py_logger('ERROR', 'some exception')