def METHOD_NAME(self):
    """
    Processors are patched within the contextmanager and restored on
    exit.
    """
    orig_procs = self.get_active_procs()
    assert len(orig_procs) > 1
    with testing.capture_logs():
        modified_procs = self.get_active_procs()
        assert len(modified_procs) == 1
        assert isinstance(modified_procs[0], LogCapture)
    restored_procs = self.get_active_procs()
    assert orig_procs is restored_procs
    assert len(restored_procs) > 1