예제 #1
0
파일: test_utils.py 프로젝트: thrix/fmf
 def test_mode(self):
     for mode in range(3):
         utils.Coloring().set(mode)
         assert (utils.Coloring().get() == mode)
예제 #2
0
파일: test_utils.py 프로젝트: thrix/fmf
 def test_color(self):
     utils.Coloring().set()
     text = utils.color("text", "lightblue", enabled=True)
예제 #3
0
파일: test_utils.py 프로젝트: thrix/fmf
 def test_invalid(self):
     with pytest.raises(RuntimeError):
         utils.Coloring().set(3)