def r(*_): raise datastore_errors.Timeout('Sorry!')
def MockNdbTransaction(func, **options): if len(calls) < 1: calls.append(1) raise datastore_errors.Timeout() return original_ndb_transaction(func, **options)