MCPcopy
hub / github.com/donnemartin/saws / test_toolbar_on

Method test_toolbar_on

tests/test_toolbar.py:32–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 self.saws.get_shortcut_match)
31
32 def test_toolbar_on(self):
33 self.saws.set_color(True)
34 self.saws.set_fuzzy_match(True)
35 self.saws.set_shortcut_match(True)
36 expected = [
37 (Token.Toolbar.On, ' [F2] Color: ON '),
38 (Token.Toolbar.On, ' [F3] Fuzzy: ON '),
39 (Token.Toolbar.On, ' [F4] Shortcuts: ON '),
40 (Token.Toolbar, ' [F5] Refresh '),
41 (Token.Toolbar, ' [F9] Docs '),
42 (Token.Toolbar, ' [F10] Exit ')]
43 assert expected == self.toolbar.handler(None)
44
45 def test_toolbar_off(self):
46 self.saws.set_color(False)

Callers

nothing calls this directly

Calls 3

set_colorMethod · 0.80
set_fuzzy_matchMethod · 0.80
set_shortcut_matchMethod · 0.80

Tested by

no test coverage detected