예제 #1
0
 def testItShouldColourTextBlue(self):
     assert coloured_stream.format_colors("this text is [color blue]blue[/color]") == "this text is \033[94mblue\033[0m"
예제 #2
0
 def testItShouldColourTextRed(self):
     assert coloured_stream.format_colors("this text is [color red]red[/color]") == "this text is \033[91mred\033[0m"
예제 #3
0
 def testItShouldColourTextYellow(self):
     assert coloured_stream.format_colors("this text is [color yellow]yellow[/color]") == "this text is \033[93myellow\033[0m"
예제 #4
0
 def testItShouldColourTextGreen(self):
     assert coloured_stream.format_colors("this text is [color green]green[/color]") == "this text is \033[92mgreen\033[0m"
예제 #5
0
 def testItShouldColourTextPurple(self):
     assert coloured_stream.format_colors("this text is [color purple]purple[/color]") == "this text is \033[95mpurple\033[0m"
 def testItShouldColourTextBlue(self):
     assert coloured_stream.format_colors(
         "this text is [color blue]blue[/color]"
     ) == "this text is \033[94mblue\033[0m"
 def testItShouldColourTextYellow(self):
     assert coloured_stream.format_colors(
         "this text is [color yellow]yellow[/color]"
     ) == "this text is \033[93myellow\033[0m"
 def testItShouldColourTextRed(self):
     assert coloured_stream.format_colors(
         "this text is [color red]red[/color]"
     ) == "this text is \033[91mred\033[0m"
 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"