We should make sure to fix the tests as well as the code:
key=self._must_keydataset=self._must_datasetentity=dataset.get_entity(key.to_protobuf())
(the key should be re-loaded, not the key protobuf).
Example failure:
>>>entity.reload()
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"gcloud/datastore/entity.py", line215, inreloadentity=dataset.get_entity(key.to_protobuf())
File"gcloud/datastore/dataset.py", line139, inget_entitykey=Key.from_path(*key_or_path)
TypeError: from_path() argumentafter*mustbeasequence, notKey
We should make sure to fix the tests as well as the code:
(the
keyshould be re-loaded, not the key protobuf).Example failure: