diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-30 10:52:57 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-30 10:52:57 +1300 |
commit | d1f14961ed8995e5857b7918ab90f3d066dedce0 (patch) | |
tree | 912935d87e938a36fda30cb919a4e63593240f7d /mitmproxy/controller.py | |
parent | b4904d33bafc5a1b95946d14514c7799c7c85991 (diff) | |
download | mitmproxy-d1f14961ed8995e5857b7918ab90f3d066dedce0.tar.gz mitmproxy-d1f14961ed8995e5857b7918ab90f3d066dedce0.tar.bz2 mitmproxy-d1f14961ed8995e5857b7918ab90f3d066dedce0.zip |
test.taddon: Add cycle() method, use it to test addons.intercept
Diffstat (limited to 'mitmproxy/controller.py')
-rw-r--r-- | mitmproxy/controller.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mitmproxy/controller.py b/mitmproxy/controller.py index c5e125ce..868d5841 100644 --- a/mitmproxy/controller.py +++ b/mitmproxy/controller.py @@ -174,10 +174,10 @@ class Reply: class DummyReply(Reply): """ - A reply object that is not connected to anything. In contrast to regular Reply objects, - DummyReply objects are reset to "unhandled" at the end of an handler so that they can be used - multiple times. Useful when we need an object to seem like it has a channel, - and during testing. + A reply object that is not connected to anything. In contrast to regular + Reply objects, DummyReply objects are reset to "unhandled" at the end of an + handler so that they can be used multiple times. Useful when we need an + object to seem like it has a channel, and during testing. """ def __init__(self): super().__init__(None) |