def test__should_recover_w_unavailable(): from google.api_core.exceptions import ServiceUnavailable from google.cloud.firestore_v1.watch import _should_recover exception = ServiceUnavailable("testing") assert _should_recover(exception)
def _callFUT(self, exception): from google.cloud.firestore_v1.watch import _should_recover return _should_recover(exception)
def test__should_recover_w_non_recoverable(): from google.cloud.firestore_v1.watch import _should_recover exception = ValueError("testing") assert not _should_recover(exception)