diff options
| author | Aldo Cortesi <aldo@corte.si> | 2017-05-03 15:46:56 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-03 15:46:56 +1200 |
| commit | 822797c7e0588695ecf318b7e7c424eda393405c (patch) | |
| tree | 42fb406c2918a9a1934b4b8114cc56845b3f8921 /test | |
| parent | e24ff261e76f5c05e35375277f6ddb1675fc90a8 (diff) | |
| parent | 2659b522094c325f1ee4138f6cf793373d8c9c52 (diff) | |
| download | mitmproxy-822797c7e0588695ecf318b7e7c424eda393405c.tar.gz mitmproxy-822797c7e0588695ecf318b7e7c424eda393405c.tar.bz2 mitmproxy-822797c7e0588695ecf318b7e7c424eda393405c.zip | |
Merge pull request #2307 from cortesi/layouts
console: add a two-pane layout
Diffstat (limited to 'test')
| -rw-r--r-- | test/mitmproxy/console/test_flowlist.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/mitmproxy/console/test_flowlist.py b/test/mitmproxy/console/test_flowlist.py deleted file mode 100644 index 6d82749d..00000000 --- a/test/mitmproxy/console/test_flowlist.py +++ /dev/null @@ -1,29 +0,0 @@ -import urwid - -import mitmproxy.tools.console.flowlist as flowlist -from mitmproxy.tools import console -from mitmproxy import proxy -from mitmproxy import options - - -class TestFlowlist: - def mkmaster(self, **opts): - if "verbosity" not in opts: - opts["verbosity"] = 1 - o = options.Options(**opts) - return console.master.ConsoleMaster(o, proxy.DummyServer()) - - def test_logbuffer_set_focus(self): - m = self.mkmaster() - b = flowlist.LogBufferBox(m) - e = urwid.Text("Log message") - m.logbuffer.append(e) - m.logbuffer.append(e) - - assert len(m.logbuffer) == 2 - b.set_focus(0) - assert m.logbuffer.focus == 0 - b.set_focus(1) - assert m.logbuffer.focus == 1 - b.set_focus(2) - assert m.logbuffer.focus == 1 |
