def METHOD_NAME(self):
    """Test warnings are triggered when using deprecated arguments."""
    @_deprecate_arguments(version="xxx", deprecated_args={"c"})
    def dummy_c_deprecated(a, b="b", c="c"):
        pass
    @_deprecate_arguments(version="xxx", deprecated_args={"b", "c"})
    def dummy_b_c_deprecated(a, b="b", c="c"):
        pass
    with warnings.catch_warnings():
        # Assert no warnings when used correctly.
        # Taken from https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests
        warnings.simplefilter("error")
        dummy_c_deprecated("A")
        dummy_c_deprecated("A", "B")
        dummy_c_deprecated("A", b="B")
        dummy_b_c_deprecated("A")
        dummy_b_c_deprecated("A", b="b")
        dummy_b_c_deprecated("A", b="b", c="c")
    with pytest.warns(FutureWarning):
        dummy_c_deprecated("A", "B", "C")
    with pytest.warns(FutureWarning):
        dummy_c_deprecated("A", c="C")
    with pytest.warns(FutureWarning):
        dummy_c_deprecated("A", b="B", c="C")
    with pytest.warns(FutureWarning):
        dummy_b_c_deprecated("A", b="B")
    with pytest.warns(FutureWarning):
        dummy_b_c_deprecated("A", c="C")
    with pytest.warns(FutureWarning):
        dummy_b_c_deprecated("A", b="B", c="C")