Пример #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") + "  "
Пример #2
0
 def test_active_selected(self):
     menu = Termenu(OPTIONS, height=4)
     assert menu._decorate("text", active=True, selected=True) == "*" + active_selected("text") + "  "
Пример #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")
Пример #4
0
 def test_active(self):
     menu = Termenu(OPTIONS, height=4)
     assert menu._decorate("text", active=True) == " " + active("text") + "  "