def url_should_be(self, url):
    """Assert the absolute URL of the browser is as provided."""

    if world.browser.current_url != url:
        raise AssertionError(
            "Browser URL expected to be {!r}, got {!r}.".format(
                url, world.browser.current_url))
Assert the absolute URL of the browser is as provided.