コード例 #1
0
ファイル: coloured_stream_test.py プロジェクト: 0xr0ot/drozer
 def testItShouldColourTextBlue(self):
     assert coloured_stream.format_colors("this text is [color blue]blue[/color]") == "this text is \033[94mblue\033[0m"
コード例 #2
0
ファイル: coloured_stream_test.py プロジェクト: 0xr0ot/drozer
 def testItShouldColourTextRed(self):
     assert coloured_stream.format_colors("this text is [color red]red[/color]") == "this text is \033[91mred\033[0m"
コード例 #3
0
ファイル: coloured_stream_test.py プロジェクト: 0xr0ot/drozer
 def testItShouldColourTextYellow(self):
     assert coloured_stream.format_colors("this text is [color yellow]yellow[/color]") == "this text is \033[93myellow\033[0m"
コード例 #4
0
ファイル: coloured_stream_test.py プロジェクト: 0xr0ot/drozer
 def testItShouldColourTextGreen(self):
     assert coloured_stream.format_colors("this text is [color green]green[/color]") == "this text is \033[92mgreen\033[0m"
コード例 #5
0
ファイル: coloured_stream_test.py プロジェクト: 0xr0ot/drozer
 def testItShouldColourTextPurple(self):
     assert coloured_stream.format_colors("this text is [color purple]purple[/color]") == "this text is \033[95mpurple\033[0m"
コード例 #6
0
 def testItShouldColourTextBlue(self):
     assert coloured_stream.format_colors(
         "this text is [color blue]blue[/color]"
     ) == "this text is \033[94mblue\033[0m"
コード例 #7
0
 def testItShouldColourTextYellow(self):
     assert coloured_stream.format_colors(
         "this text is [color yellow]yellow[/color]"
     ) == "this text is \033[93myellow\033[0m"
コード例 #8
0
 def testItShouldColourTextRed(self):
     assert coloured_stream.format_colors(
         "this text is [color red]red[/color]"
     ) == "this text is \033[91mred\033[0m"
コード例 #9
0
 def testItShouldColourTextPurple(self):
     assert coloured_stream.format_colors(
         "this text is [color purple]purple[/color]"
     ) == "this text is \033[95mpurple\033[0m"
コード例 #10
0
 def testItShouldColourTextGreen(self):
     assert coloured_stream.format_colors(
         "this text is [color green]green[/color]"
     ) == "this text is \033[92mgreen\033[0m"