def METHOD_NAME():
    """test activity creation with UsedURLs"""
    u1 = "http://xkcd.com"
    u2 = {"name": "The Onion", "url": "http://theonion.com"}
    u3 = {
        "name": "Seriously advanced code",
        "url": "https://github.com/cbare/Pydoku/blob/ef88069f70823808f3462410e941326ae7ffbbe0/solver.py",
        "wasExecuted": True,
    }
    u4 = {
        "name": "Heavy duty algorithm",
        "url": "https://github.com/cbare/Pydoku/blob/master/solver.py",
    }
    a = Activity(
        name="Foobarbat",
        description="Apply foo to a bar and a bat",
        used=[u1, u2, u3],
        executed=[u3, u4],
    )
    a.executed(
        url="http://cran.r-project.org/web/packages/glmnet/index.html", name="glm.net"
    )
    a.used(
        url="http://earthquake.usgs.gov/earthquakes/feed/geojson/2.5/day",
        name="earthquakes",
    )
    u = utils._find_used(a, lambda res: "url" in res and res["url"] == u1)
    assert u is not None
    assert u["url"] == u1
    assert not u["wasExecuted"]
    u = utils._find_used(a, lambda res: "name" in res and res["name"] == "The Onion")
    assert u is not None
    assert u["url"] == "http://theonion.com"
    assert not u["wasExecuted"]
    u = utils._find_used(
        a, lambda res: "name" in res and res["name"] == "Seriously advanced code"
    )
    assert u is not None
    assert u["url"] == u3["url"]
    assert u["wasExecuted"] == u3["wasExecuted"]
    u = utils._find_used(
        a, lambda res: "name" in res and res["name"] == "Heavy duty algorithm"
    )
    assert u is not None
    assert u["url"] == u4["url"]
    assert u["wasExecuted"]
    u = utils._find_used(a, lambda res: "name" in res and res["name"] == "glm.net")
    assert u is not None
    assert u["url"] == "http://cran.r-project.org/web/packages/glmnet/index.html"
    assert u["wasExecuted"]
    u = utils._find_used(a, lambda res: "name" in res and res["name"] == "earthquakes")
    assert u is not None
    assert u["url"] == "http://earthquake.usgs.gov/earthquakes/feed/geojson/2.5/day"
    assert not u["wasExecuted"]