diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-02-09 16:44:27 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2017-02-09 16:44:27 +0100 |
commit | da8444b11f8bebbb0e0495e4d4d896e2c60e3f02 (patch) | |
tree | 08604f51ed07a5e1ff38c8599f286e98922e18d1 /test | |
parent | 1084588103e11ad2a7555df1070f96fb5dc77a45 (diff) | |
download | mitmproxy-da8444b11f8bebbb0e0495e4d4d896e2c60e3f02.tar.gz mitmproxy-da8444b11f8bebbb0e0495e4d4d896e2c60e3f02.tar.bz2 mitmproxy-da8444b11f8bebbb0e0495e4d4d896e2c60e3f02.zip |
flow_count() -> len(flows)
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mitmproxy/test_server.py b/test/mitmproxy/test_server.py index af121534..dfd61540 100644 --- a/test/mitmproxy/test_server.py +++ b/test/mitmproxy/test_server.py @@ -1007,8 +1007,8 @@ class TestUpstreamProxySSL( req = p.request("get:'/p/418'") assert req.status_code == 418 - assert self.chain[0].tmaster.state.flow_count() == 0 - assert self.chain[1].tmaster.state.flow_count() == 1 + assert len(self.chain[0].tmaster.state.flows) == 0 + assert len(self.chain[1].tmaster.state.flows) == 1 class UpstreamProxyChanger: |