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.

本頁內容對您是否有任何幫助?請提供意見:

傳送您對下列選項的寶貴意見...

這個網頁
App Engine standard environment for Python 2