예제 #1
0
파일: test.py 프로젝트: weka/termenu
 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
파일: test.py 프로젝트: weka/termenu
 def test_active_selected(self):
     menu = Termenu(OPTIONS, height=4)
     assert menu._decorate(
         "text", active=True,
         selected=True) == "*" + active_selected("text") + "  "
예제 #3
0
파일: test.py 프로젝트: weka/termenu
 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
파일: test.py 프로젝트: weka/termenu
 def test_active(self):
     menu = Termenu(OPTIONS, height=4)
     assert menu._decorate("text",
                           active=True) == " " + active("text") + "  "
예제 #5
0
파일: test.py 프로젝트: koreno/termenu
 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") + "  "
예제 #6
0
파일: test.py 프로젝트: koreno/termenu
 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")
예제 #7
0
파일: test.py 프로젝트: koreno/termenu
 def test_active_selected(self):
     menu = Termenu(OPTIONS, height=4)
     assert menu._decorate("text", active=True, selected=True) == "*" + active_selected("text") + "  "
예제 #8
0
파일: test.py 프로젝트: koreno/termenu
 def test_active(self):
     menu = Termenu(OPTIONS, height=4)
     assert menu._decorate("text", active=True) == " " + active("text") + "  "