google.appengine.api.files.testutil module


Files API.

Deprecated since version 1.8.1: Use Google Cloud Storage Client library instead.

Testing utils for writing tests involving Files API.


class google.appengine.api.files.testutil.TestFileServiceStubsource

Bases: google.appengine.api.apiproxy_stub.APIProxyStub

A FileServiceStub to be used with tests.

Doesn't perform any kind of file validation and stores all file content in memory. Can be used to test low-level file calls only, because it doesn't support all features (like blobstore files).


Get current in-memory file content.

set_content(filename, content)source

Set current in-memory file content.

Send feedback about...

App Engine standard environment for Python