import threading
import hashlib
import random
+import uuid
from cStringIO import StringIO
self.assertNotIn('linkeddir2', cwriter.manifest_text())
cwriter.destroy_cache()
+ def test_passing_nonexistant_path_raise_exception(self):
+ uuid_str = str(uuid.uuid4())
+ cwriter = arv_put.ArvPutUploadJob(["/this/path/does/not/exist/{}".format(uuid_str)])
+ with self.assertRaises(arv_put.PathDoesNotExistError):
+ cwriter.start(save_collection=False)
+
def test_writer_works_without_cache(self):
cwriter = arv_put.ArvPutUploadJob(['/dev/null'], resume=False)
cwriter.start(save_collection=False)