def url_contains(url):
    """ An expectation for checking that the current url contains a
    case-sensitive substring.
    url is the fragment of url expected,
    returns True when the url matches, False otherwise
    """
    def _predicate(driver):
        return url in driver.current_url

    return _predicate