    def test_sal_same_image(self, converter, thr_factor):
        """Test the SAL verification method."""
        precip, metadata = get_precipitation_fields(
            num_prev_files=0, log_transform=False, metadata=True
        )
        precip, metadata = converter(precip.filled(np.nan), metadata)
        result = sal(precip, precip, thr_factor)
        assert isinstance(result, tuple)
        assert len(result) == 3
        assert np.allclose(result, [0, 0, 0])
Test the SAL verification method.
pysteps/tests/test_verification_salscores.py