Ejemplo n.º 1
0
 def test_wraps_arg_as_line_in_colour(self):
     stream = ColourWritelnDecorator(StringIO())
     stream.writeln('{*}', colour=termstyle.red)
     stream.stream.getvalue() | should | be_equal_to(
         termstyle.red('{*}') + '\n')
Ejemplo n.º 2
0
 def test_wraps_arg_as_line_in_colour(self):
     stream = ColourWritelnDecorator(StringIO())
     stream.writeln('{*}', colour=termstyle.red)
     stream.stream.getvalue() |should| be_equal_to(
         termstyle.red('{*}') + '\n')
Ejemplo n.º 3
0
 def test_writes_arg_as_line_without_colour(self):
     stream = ColourWritelnDecorator(StringIO())
     stream.writeln('{*}')
     stream.stream.getvalue() | should | be_equal_to('{*}\n')
Ejemplo n.º 4
0
 def test_writes_arg_as_line_without_colour(self):
     stream = ColourWritelnDecorator(StringIO())
     stream.writeln('{*}')
     stream.stream.getvalue() |should| be_equal_to('{*}\n')