def test_params_file_creation_path(config_dir, file_name, expected_path):
    """Test that the default pysteps parameters file is created in the right place."""

    # For windows compatibility
    if config_dir is not None:
        config_dir = os.path.normpath(config_dir)
    expected_path = os.path.normpath(expected_path)

    pysteps_data_dir = "dummy/path/to/data"
    params_file_path = create_default_pystepsrc(
        pysteps_data_dir, config_dir=config_dir, file_name=file_name, dryrun=True
    )

    assert expected_path == params_file_path
Test that the default pysteps parameters file is created in the right place.
pysteps/tests/test_datasets.py