def page_title ( step , title ) : with AssertContextManager ( step ) : assert_equals ( world . browser . title , title )
python unit test assert html response
Check that the page title matches the given one .
def page_title(step, title):
    """
    Check that the page title matches the given one.
    """

    with AssertContextManager(step):
        assert_equals(world.browser.title, title)