def METHOD_NAME(self):
    with assertNotProducesWarnings(SomeWarning):
        pass
    with ignoreWarning(OtherWarning):
        with assertNotProducesWarnings(SomeWarning):
            warnings.warn("msg 3", OtherWarning)