class documentation
class APISpyTests(SynchronousTestCase): (source)
The agent_spy API provides an agent that records each request made to it.
Method | test |
The agent returned by agent_spy() provides the IAgent interface. |
Method | test |
Each parameter passed to `request` is available as an attribute of the RequestRecord. Additionally, the deferred returned by the call is available. |
Method | test |
Each request made with the agent is recorded. |
Method | test |
The request method enforces correctness by raising TypeError when passed parameters of the wrong type. |
Each parameter passed to `request` is available as an attribute of the RequestRecord. Additionally, the deferred returned by the call is available.