Returns the document representing the currently logged in user on the
        server

def get_user_info(self):
        """
        Returns the document representing the currently logged in user on the
        server
        """
        try:
            user_id = "org.couchdb.user:"+self.resource.credentials[0]
        except TypeError:
            raise RuntimeError(
                "Please log in before trying to access your user's info"
            )
        status, _, body = self["_users"].resource.get_json(user_id)
        if status != 200:
            raise RuntimeError(
                "Failed to get user info"
            )
        return body