Пример #1
0
    def test_make_filename():

        test_file = 'testy_test.nc'
        expected_output = 'testy_test_kenya.nc'

        filename = GLEAMPreprocessor.create_filename(test_file, 'kenya')
        assert filename == expected_output, \
            f'Expected output to be {expected_output}, got {filename}'
Пример #2
0
    def test_make_filename():

        test_file = "testy_test.nc"
        expected_output = "testy_test_kenya.nc"

        filename = GLEAMPreprocessor.create_filename(test_file, "kenya")
        assert (
            filename == expected_output
        ), f"Expected output to be {expected_output}, got {filename}"