class documentation

The agent_spy API provides an agent that records each request made to it.

Method test_provides_iagent The agent returned by agent_spy() provides the IAgent interface.
Method test_record_attributes Each parameter passed to `request` is available as an attribute of the RequestRecord. Additionally, the deferred returned by the call is available.
Method test_records Each request made with the agent is recorded.
Method test_type_validation The request method enforces correctness by raising TypeError when passed parameters of the wrong type.
def test_provides_iagent(self): (source)

The agent returned by agent_spy() provides the IAgent interface.

def test_record_attributes(self): (source)

Each parameter passed to `request` is available as an attribute of the RequestRecord. Additionally, the deferred returned by the call is available.

def test_records(self): (source)

Each request made with the agent is recorded.

def test_type_validation(self): (source)

The request method enforces correctness by raising TypeError when passed parameters of the wrong type.