'Test out of bounds input for factor.winsorize.'

def test_winsorize_bad_bounds(self):

    f = self.f
    bad_percentiles = [((-0.1), 1), (0, 95), (5, 95), (5, 5), (0.6, 0.4)]
    for (min_, max_) in bad_percentiles:
        with self.assertRaises(BadPercentileBounds):
            f.winsorize(min_percentile=min_, max_percentile=max_)
