Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.

google.appengine.api.stublib.Patchers

A list of patchers with helper functions to bulk start and stop them.

Inherits From: data_type, expected_type

Methods

StartAll

View source

Start all patchers and return a map of the created mocks.

StopAll

View source

append

Append object to the end of the list.

clear

Remove all items from list.

copy

Return a shallow copy of the list.

count

Return number of occurrences of value.

extend

Extend list by appending elements from the iterable.

index

Return first index of value.

Raises ValueError if the value is not present.

insert

Insert object before index.

pop

Remove and return item at index (default last).

Raises IndexError if list is empty or index is out of range.

remove

Remove first occurrence of value.

Raises ValueError if the value is not present.

reverse

Reverse IN PLACE.

sort

Sort the list in ascending order and return None.

The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained).

If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values.

The reverse flag can be set to sort in descending order.

__add__

Return self+value.

__contains__

Return key in self.

__eq__

Return self==value.

__ge__

Return self>=value.

__getitem__

x.getitem(y) <==> x[y]

__gt__

Return self>value.

__iter__

Implement iter(self).

__le__

Return self<=value.

__len__

Return len(self).

__lt__

Return self<value.

__mul__

Return self*value.

__ne__

Return self!=value.

__rmul__

Return value*self.