(base_uri)
return {
        "version": {
            "status": "stable",
            "updated": "2014-04-17T00:00:00Z",
            "media-types": [{
                "base": "application/json",
                "type": "application/vnd.openstack.identity-v2.0+json"
            }],
            "id": "v2.0",
            "links": [{
                "href": base_uri.rstrip("/") + "/identity/v2.0",
                "rel": "self"
            }, {
                "href": "http://docs.openstack.org/",
                "type": "text/html",
                "rel": "describedby"
            }]
        }
    }
Canned response for keystone v2 version.

    Cf: http://developer.openstack.org/api-ref-identity-v2.html#listVersions-v2
Canned response for keystone v2 version.
Canned response for keystone v2 version .
def get_version_v2(base_uri):
    """
    Canned response for keystone v2 version.

    Cf: http://developer.openstack.org/api-ref-identity-v2.html#listVersions-v2
    """
    return {
        "version": {
            "status": "stable",
            "updated": "2014-04-17T00:00:00Z",
            "media-types": [{
                "base": "application/json",
                "type": "application/vnd.openstack.identity-v2.0+json"
            }],
            "id": "v2.0",
            "links": [{
                "href": base_uri.rstrip("/") + "/identity/v2.0",
                "rel": "self"
            }, {
                "href": "http://docs.openstack.org/",
                "type": "text/html",
                "rel": "describedby"
            }]
        }
    }
def get_version_v2 ( base_uri ) : return { "version" : { "status" : "stable" , "updated" : "2014-04-17T00:00:00Z" , "media-types" : [ { "base" : "application/json" , "type" : "application/vnd.openstack.identity-v2.0+json" } ] , "id" : "v2.0" , "links" : [ { "href" : base_uri . rstrip ( "/" ) + "/identity/v2.0" , "rel" : "self" } , { "href" : "http://docs.openstack.org/" , "type" : "text/html" , "rel" : "describedby" } ] } }