コード例 #1
0
 def r(*_):
     raise datastore_errors.Timeout('Sorry!')
コード例 #2
0
 def MockNdbTransaction(func, **options):
     if len(calls) < 1:
         calls.append(1)
         raise datastore_errors.Timeout()
     return original_ndb_transaction(func, **options)