def mock_sign(version_id, reviewer=False):
 version = Version.objects.get(pk=version_id)
 file_obj = version.all_files[0]
 if reviewer:
  path = file_obj.signed_reviewer_file_path
  storage = private_storage
 else:
  path = file_obj.signed_file_path
  storage = public_storage
 copy_stored_file(file_obj.file_path, path, src_storage=private_storage, dst_storage=storage)
 return path

def mock_sign ( version_id , reviewer = False ) : version = Version . objects . get ( pk = version_id ) file_obj = version . all_files [ 0 ] if reviewer : path = file_obj . signed_reviewer_file_path storage = private_storage else : path = file_obj . signed_file_path storage = public_storage copy_stored_file ( file_obj . file_path , path , src_storage = private_storage , dst_storage = storage ) return path
this is a mock for using in tests .