File indexing completed on 2026-04-09 07:58:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 """
0013 Test cacher.
0014 """
0015
0016 import os
0017
0018 from idds.client.client import Client
0019 from idds.common.utils import get_rest_host
0020
0021
0022 full_name = os.path.abspath(__file__)
0023
0024 host = get_rest_host()
0025
0026 client = Client(host=host)
0027 client.upload(full_name)
0028 client.download(os.path.join('/tmp', os.path.basename(full_name)))
0029
0030 full_name = '/bin/hostname'
0031 client.upload(full_name)
0032 client.download(os.path.join('/tmp', os.path.basename(full_name)))