コード例 #1
0
ファイル: display_test.py プロジェクト: pombredanne/Tron
 def test_add_blue(self):
     text = display.add_color_for_state(job.Job.STATUS_DISABLED)
     assert text.startswith(display.Color.colors['blue']), text
コード例 #2
0
ファイル: display_test.py プロジェクト: pombredanne/Tron
 def test_add_red(self):
     text = display.add_color_for_state(actionrun.ActionRun.FAILED, )
     assert text.startswith(display.Color.colors['red']), text
コード例 #3
0
ファイル: display_test.py プロジェクト: pombredanne/Tron
 def test_add_green(self):
     text = display.add_color_for_state(actionrun.ActionRun.RUNNING, )
     assert text.startswith(display.Color.colors['green']), text
コード例 #4
0
 def test_add_blue(self):
     text = display.add_color_for_state(service.ServiceState.DISABLED)
     assert text.startswith(display.Color.colors['blue']), text
コード例 #5
0
 def test_add_green(self):
     text = display.add_color_for_state(
         actionrun.ActionRun.STATE_RUNNING.name)
     assert text.startswith(display.Color.colors['green']), text
コード例 #6
0
 def test_add_red(self):
     text = display.add_color_for_state(
         actionrun.ActionRun.STATE_FAILED.name)
     assert text.startswith(display.Color.colors['red']), text
コード例 #7
0
ファイル: display_test.py プロジェクト: tsheasha/Tron
 def test_add_blue(self):
     text = display.add_color_for_state(service.ServiceState.DISABLED)
     assert text.startswith(display.Color.colors['blue']), text
コード例 #8
0
ファイル: display_test.py プロジェクト: zhengpingwan/Tron
 def test_add_blue(self):
     text = display.add_color_for_state(job.Job.STATUS_DISABLED)
     assert text.startswith(display.Color.colors['blue']), text