@_handle_object_not_found
    def get(self, obj):
        name = utils.get_name(obj)
        uri = "/%s/%s" % (self.uri_base, name)
        resp, resp_body = self.api.method_head(uri)
        hdrs = resp.headers
        try:
            content_length = int(hdrs.get("content-length"))
        except (TypeError, ValueError):
            content_length = None
        data = {"name": name,
                "bytes": content_length,
                "content_type": hdrs.get("content-type"),
                "hash": hdrs.get("etag"),
                "last_modified": hdrs.get("last-modified"),
                "timestamp": hdrs.get("x-timestamp"),
                }
        return StorageObject(self, data, loaded=True)
Test that the XML element and attribute exist, return attribute's value, else return None
dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py/StorageObjectManager.get--crossover with--dataset/ETHPy150Open geopython/OWSLib/owslib/util.py/testXMLAttribute