Exemplo n.º 1
0
 def test_max_opti_on_len(self):
     menu = Termenu("one three fifteen twenty eleven".split(), height=4)
     assert menu._decorate("three", active=True, selected=True) == "*" + active_selected("three") + "  "
Exemplo n.º 2
0
 def test_active_selected(self):
     menu = Termenu(OPTIONS, height=4)
     assert menu._decorate("text", active=True, selected=True) == "*" + active_selected("text") + "  "
Exemplo n.º 3
0
 def test_more_below(self):
     menu = Termenu(OPTIONS, height=4)
     assert menu._decorate("text", active=True, selected=True, moreBelow=True) == "*" + active_selected("text") + " " + white("v")
Exemplo n.º 4
0
 def test_active(self):
     menu = Termenu(OPTIONS, height=4)
     assert menu._decorate("text", active=True) == " " + active("text") + "  "