Пример #1
0
    def test_climate_datasets_setup(self):
        ds = self.get_dataset(defaults.DATASETS_CLIMATE_FOLDER_ID, 'future')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'file'))

        ds = self.get_dataset(defaults.DATASETS_CLIMATE_FOLDER_ID, 'remote')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'remoteUrl'))
Пример #2
0
    def test_species_datasets_setup(self):
        ds = self.get_dataset(defaults.DATASETS_SPECIES_FOLDER_ID,
                              'ABT', 'occurrence.csv')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'file'))

        ds = self.get_dataset(defaults.DATASETS_SPECIES_FOLDER_ID,
                              'ABT', 'absence.csv')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'file'))
Пример #3
0
    def test_environmental_datasets_setup(self):
        ds = self.get_dataset(defaults.DATASETS_ENVIRONMENTAL_FOLDER_ID,
                              'current')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'file'))

        ds = self.get_dataset(defaults.DATASETS_ENVIRONMENTAL_FOLDER_ID,
                              'current_1k')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'file'))
Пример #4
0
    def test_climate_datasets_setup(self):
        ds = self.get_dataset(defaults.DATASETS_CLIMATE_FOLDER_ID,
                              'future')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'file'))

        ds = self.get_dataset(defaults.DATASETS_CLIMATE_FOLDER_ID,
                              'remote')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'remoteUrl'))
Пример #5
0
    def test_species_datasets_setup(self):
        ds = self.get_dataset(defaults.DATASETS_SPECIES_FOLDER_ID, 'ABT',
                              'occurrence.csv')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'file'))

        ds = self.get_dataset(defaults.DATASETS_SPECIES_FOLDER_ID, 'ABT',
                              'absence.csv')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'file'))
Пример #6
0
    def test_environmental_datasets_setup(self):
        ds = self.get_dataset(defaults.DATASETS_ENVIRONMENTAL_FOLDER_ID,
                              'current')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'file'))

        ds = self.get_dataset(defaults.DATASETS_ENVIRONMENTAL_FOLDER_ID,
                              'current_1k')
        IDataset.providedBy(ds)
        self.assertTrue(hasattr(ds, 'file'))