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')
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')
def test_writes_arg_as_line_without_colour(self): stream = ColourWritelnDecorator(StringIO()) stream.writeln('{*}') stream.stream.getvalue() | should | be_equal_to('{*}\n')
def test_writes_arg_as_line_without_colour(self): stream = ColourWritelnDecorator(StringIO()) stream.writeln('{*}') stream.stream.getvalue() |should| be_equal_to('{*}\n')