Esempio n. 1
0
 def test_translates_sequences_of_styles_single_callable(self):
     scheme = ColourScheme(dict(blue_italic=('blue', 'italic')))
     scheme.blue_italic('{*}') | should | be_equal_to(
         termstyle.italic(termstyle.blue('{*}')))
Esempio n. 2
0
 def test_translates_sequences_of_styles_single_callable(self):
     scheme = ColourScheme(dict(blue_italic=('blue', 'italic')))
     scheme.blue_italic('{*}') |should| be_equal_to(
         termstyle.italic(termstyle.blue('{*}')))
Esempio n. 3
0
 def test_wraps_arg_in_colour(self):
     stream = ColourDecorator(StringIO())
     stream.write('{*}', colour=termstyle.italic)
     stream.stream.getvalue() | should | be_equal_to(
         termstyle.italic('{*}'))
Esempio n. 4
0
 def test_wraps_arg_in_colour(self):
     stream = ColourDecorator(StringIO())
     stream.write('{*}', colour=termstyle.italic)
     stream.stream.getvalue() |should| be_equal_to(
         termstyle.italic('{*}'))