Ejemplo n.º 1
0
 def test_dir(self):
     dir_name, _ = self.create_dir_with_files(num_files=10)
     fsdvi = FilesystemDatasetVersionInfo(dir_name)
     assert len(fsdvi.dataset_part_infos) == 10
     assert fsdvi.size == 70
     shutil.rmtree(dir_name)
Ejemplo n.º 2
0
 def test_single_file(self):
     dir_name, file_names = self.create_dir_with_files(num_files=1)
     fsdvi = FilesystemDatasetVersionInfo(dir_name + "/" + file_names[0])
     assert len(fsdvi.dataset_part_infos) == 1
     assert fsdvi.size == 7
     shutil.rmtree(dir_name)