def METHOD_NAME(self, output, which):
    rfile = output.val[which]
    ofile = rfile.val
    assert ofile
    tmppath = create_path("pingtest")
    try:
        self.client.download(ofile, str(tmppath))
        assert os.path.getsize(str(tmppath))
        return tmppath.text()
    finally:
        remove_path(tmppath)