def test_georefine_packager(self):
        cells = data_generators.generate_cell_grid()
        energys = data_generators.generate_energys()
        features = data_generators.generate_features()
        substrates = data_generators.generate_substrates()
        gears = data_generators.generate_gears()
        #results = data_generators.generate_results(
            #times=range(0,3), cells=cells, energys=energys,
            #features=features, substrates=substrates, gears=gears)

        # Directory for GeoRefine-specific data files.
        source_dir = data_generators.generate_data_dir()

        metadata_dir = tempfile.mkdtemp(prefix="gr_md.")
        open(os.path.join(metadata_dir, "foo.html"), "wb").write("Hi")

        packager = GeoRefinePackager(
            data={
                'time': [t for t in range(0,10)],
                'cell': cells,
                'energy': energys,
                'substrate': substrates,
                'feature': features,
                'feature_category': [],
                'gear': gears,
                'sasi_result': [],
                'fishing_result': [],
            },
            source_dir=source_dir,
            metadata_dir=metadata_dir
        )

        archive_file = packager.create_package()
        self.target_dir = packager.target_dir
        print self.target_dir
        print archive_file
 def test_generate_cell_grid(self):
     grid = data_generators.generate_cell_grid()
 def test_generate_cell_grid(self):
     grid = data_generators.generate_cell_grid()