class documentation

class FakePayload: (source)

View In Hierarchy

A wrapper around BytesIO that restricts what can be read since data from the network can't be sought and cannot be read outside of its content length. This makes sure that views can't do anything under the test client that wouldn't work in real life.

Method __init__ Undocumented
Method __len__ Undocumented
Method read Undocumented
Method write Undocumented
Instance Variable read_started Undocumented
Instance Variable __content Undocumented
Instance Variable __len Undocumented
def __init__(self, content=None): (source)

Undocumented

def __len__(self): (source)

Undocumented

def read(self, num_bytes=None): (source)

Undocumented

def write(self, content): (source)

Undocumented

read_started: bool = (source)

Undocumented

__content = (source)

Undocumented

Undocumented