コード例 #1
0
ファイル: test_ncar_raf.py プロジェクト: gitter-badger/cis-1
    def test_WHEN_file_is_not_NCAR_RAF_OR_GASSP_THEN_errors(self):
        from cis.test.integration_test_data import valid_hadgem_filename
        product = NCAR_NetCDF_RAF()

        errors = product.get_file_type_error(valid_hadgem_filename)

        assert_that(len(errors), is_(1), "file should not be GASSP")
コード例 #2
0
ファイル: test_ncar_raf.py プロジェクト: gitter-badger/cis-1
    def test_WHEN_file_is_NCAR_RAF_THEN_no_errors(self):
        from cis.test.integration_test_data import valid_NCAR_NetCDF_RAF_filename
        product = NCAR_NetCDF_RAF()

        errors = product.get_file_type_error(valid_NCAR_NetCDF_RAF_filename)

        assert_that(errors, is_(None), "file should be GASSP")
コード例 #3
0
ファイル: test_ncar_raf.py プロジェクト: gitter-badger/cis-1
    def test_WHEN_file_dose_not_exist_THEN_errors(self):
        from cis.test.integration_test_data import invalid_filename
        product = NCAR_NetCDF_RAF()

        errors = product.get_file_type_error(invalid_filename)

        assert_that(errors, is_(["File does not exist"]), "file should not exist")
コード例 #4
0
ファイル: test_ncar_raf.py プロジェクト: gitter-badger/cis-1
    def test_WHEN_file_is_not_netcdf_THEN_errors(self):
        from cis.test.integration_test_data import valid_aeronet_filename
        product = NCAR_NetCDF_RAF()

        errors = product.get_file_type_error(valid_aeronet_filename)

        assert_that(len(errors), is_(2), "file should not be netcdf")
コード例 #5
0
ファイル: test_ncar_raf.py プロジェクト: tommibergman/cis
    def test_WHEN_file_is_not_NCAR_RAF_OR_GASSP_THEN_errors(self):
        from cis.test.integration_test_data import valid_hadgem_filename
        product = NCAR_NetCDF_RAF()

        errors = product.get_file_type_error(valid_hadgem_filename)

        assert_that(len(errors), is_(1), "file should not be GASSP")
コード例 #6
0
ファイル: test_ncar_raf.py プロジェクト: tommibergman/cis
    def test_WHEN_file_is_NCAR_RAF_THEN_no_errors(self):
        from cis.test.integration_test_data import valid_NCAR_NetCDF_RAF_filename
        product = NCAR_NetCDF_RAF()

        errors = product.get_file_type_error(valid_NCAR_NetCDF_RAF_filename)

        assert_that(errors, is_(None), "file should be GASSP")
コード例 #7
0
ファイル: test_ncar_raf.py プロジェクト: tommibergman/cis
    def test_WHEN_file_is_not_netcdf_THEN_errors(self):
        from cis.test.integration_test_data import valid_aeronet_filename
        product = NCAR_NetCDF_RAF()

        errors = product.get_file_type_error(valid_aeronet_filename)

        assert_that(len(errors), is_(2), "file should not be netcdf")
コード例 #8
0
ファイル: test_ncar_raf.py プロジェクト: tommibergman/cis
    def test_WHEN_file_dose_not_exist_THEN_errors(self):
        from cis.test.integration_test_data import invalid_filename
        product = NCAR_NetCDF_RAF()

        errors = product.get_file_type_error(invalid_filename)

        assert_that(errors, is_(["File does not exist"]),
                    "file should not exist")