@@ -926,7 +926,7 @@ def test_save_entity_wo_transaction_w_upsert(self):
926926 ])
927927 http = conn ._http = Http ({'status' : '200' }, rsp_pb .SerializeToString ())
928928 result = conn .save_entity (DATASET_ID , key_pb , {'foo' : u'Foo' })
929- self .assertEqual (result , True )
929+ self .assertEqual (result , ( False , None ) )
930930 cw = http ._called_with
931931 self ._verifyProtobufCall (cw , URI , conn )
932932 rq_class = datastore_pb .CommitRequest
@@ -967,7 +967,7 @@ def test_save_entity_w_exclude_from_indexes(self):
967967 result = conn .save_entity (DATASET_ID , key_pb ,
968968 {'foo' : u'Foo' , 'bar' : [u'bar1' , u'bar2' ]},
969969 exclude_from_indexes = ['foo' , 'bar' ])
970- self .assertEqual (result , True )
970+ self .assertEqual (result , ( False , None ) )
971971 cw = http ._called_with
972972 self ._verifyProtobufCall (cw , URI , conn )
973973 rq_class = datastore_pb .CommitRequest
@@ -1018,7 +1018,7 @@ def test_save_entity_wo_transaction_w_auto_id(self):
10181018 ])
10191019 http = conn ._http = Http ({'status' : '200' }, rsp_pb .SerializeToString ())
10201020 result = conn .save_entity (DATASET_ID , key_pb , {'foo' : u'Foo' })
1021- self .assertEqual (result , updated_key_pb )
1021+ self .assertEqual (result , ( True , 1234 ) )
10221022 cw = http ._called_with
10231023 self ._verifyProtobufCall (cw , URI , conn )
10241024 rq_class = datastore_pb .CommitRequest
@@ -1054,7 +1054,7 @@ def mutation(self):
10541054 conn .transaction (Xact ())
10551055 http = conn ._http = Http ({'status' : '200' }, rsp_pb .SerializeToString ())
10561056 result = conn .save_entity (DATASET_ID , key_pb , {'foo' : u'Foo' })
1057- self .assertEqual (result , True )
1057+ self .assertEqual (result , ( False , None ) )
10581058 self .assertEqual (http ._called_with , None )
10591059 mutation = conn .mutation ()
10601060 self .assertEqual (len (mutation .upsert ), 1 )
@@ -1077,7 +1077,7 @@ def mutation(self):
10771077 conn .transaction (Xact ())
10781078 http = conn ._http = Http ({'status' : '200' }, rsp_pb .SerializeToString ())
10791079 result = conn .save_entity (DATASET_ID , key_pb , {'foo' : nested })
1080- self .assertEqual (result , True )
1080+ self .assertEqual (result , ( False , None ) )
10811081 self .assertEqual (http ._called_with , None )
10821082 mutation = conn .mutation ()
10831083 self .assertEqual (len (mutation .upsert ), 1 )
0 commit comments