def METHOD_NAME(self):
    retriable_exc = MyError("retry me")
    wrapped = mock.Mock(
        spec=retry.Backoff,
        next_sleep_or_reraise=mock.Mock(return_value=123 * SECOND),
    )
    filtered = retry.FilteredBackoff(
        filter=lambda e: e == retriable_exc,
        wrapped=wrapped,
    )
    assert filtered.next_sleep_or_reraise(retriable_exc) == 123 * SECOND
    wrapped.next_sleep_or_reraise.assert_called_once_with(retriable_exc)