google.appengine.api.files.testutil module
Summary
Files API.
Deprecated since version 1.8.1: Use Google Cloud Storage Client library instead.
Testing utils for writing tests involving Files API.
Contents
- 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_content(filename)source
-
Get current in-memory file content.
- set_content(filename, content)source
-
Set current in-memory file content.