def METHOD_NAME(self):
    # Scale factor and standard parallel cannot both be specified for
    # Polar Stereographic projections
    cf_name = "polar_stereographic"
    cf_grid_var = mock.Mock(
        spec=[],
        straight_vertical_longitude_from_pole=0,
        latitude_of_projection_origin=45,
        false_easting=0,
        false_northing=0,
        scale_factor_at_projection_origin=1,
        semi_major_axis=6377563.396,
        semi_minor_axis=6356256.909,
    )
    engine = _engine(cf_grid_var, cf_name)
    with warnings.catch_warnings(record=True) as warns:
        warnings.simplefilter("always")
        is_valid = has_supported_polar_stereographic_parameters(
            engine, cf_name
        )
    self.assertFalse(is_valid)
    self.assertEqual(len(warns), 1)
    self.assertRegex(
        str(warns[0]),
        r'"latitude_of_projection_origin" must be \+90 or -90\.',
    )