def test_create_second_bundle_version(self):
        catalog = self._build_test_catalog()
        # add a file
        create_random_file(self.scratch_dir)
        create_bundle_version(catalog, "meep", self.scratch_dir)
        self.assertTrue(2 in catalog.get_index().versions_for_bundle("meep"))
        new_index = ZincIndex.from_path(os.path.join(catalog.path, defaults['catalog_index_name']))
        self.assertTrue(1 in new_index.versions_for_bundle("meep"))
        self.assertTrue(2 in new_index.versions_for_bundle("meep"))
dataset/ETHPy150Open mindsnacks/Zinc/tests/testZincCatalog.py/ZincCatalogTestCase.test_create_second_bundle_version/original