""" tests whether color functions do not raise errors """
for color in COLOR_BLACK, COLOR_RED, COLOR_GREEN, COLOR_YELLOW, \
COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE:
- exec('{0}("{0}")'.format(color))
- for style in 'normal', 'bold', 'underline', 'blink', 'reverse':
- exec('{0}("{0}")'.format(style))
+ exec('{0}("{0}", end=", ")'.format(color))
+ for style in 'normal', 'bold', 'underline', 'reverse':
+ exec('{0}("{0}", end=", ")'.format(style))
+ # leave out style 'blink' since it is just too distracting
def test_shortening(self):
""" test function head_and_tail """