예제 #1
0
 def testItShouldRemoveColourYellow(self):
     assert coloured_stream.remove_colors("this text is [color yellow]yellow[/color]") == "this text is yellow"
예제 #2
0
 def testItShouldRemoveColourRed(self):
     assert coloured_stream.remove_colors("this text is [color red]red[/color]") == "this text is red"
예제 #3
0
 def testItShouldRemoveColourGreen(self):
     assert coloured_stream.remove_colors("this text is [color green]green[/color]") == "this text is green"
예제 #4
0
 def testItShouldRemoveColourPurple(self):
     assert coloured_stream.remove_colors("this text is [color purple]purple[/color]") == "this text is purple"
예제 #5
0
 def testItShouldRemoveColourBlue(self):
     assert coloured_stream.remove_colors("this text is [color blue]blue[/color]") == "this text is blue"