mirror of
https://github.com/kennethreitz/crayons.git
synced 2026-06-05 23:10:18 +00:00
15 lines
578 B
Python
Executable File
15 lines
578 B
Python
Executable File
"""Simple test of just running the README example. Better tests to come."""
|
|
|
|
import crayons
|
|
|
|
print(crayons.red('red string'))
|
|
print('{} white {}'.format(crayons.red('red'), crayons.blue('blue')))
|
|
crayons.disable()
|
|
print('{} white {}'.format(crayons.red('red'), crayons.blue('blue')))
|
|
crayons.DISABLE_COLOR = False
|
|
print('{} white {}'.format(crayons.red('red'), crayons.blue('blue')))
|
|
print(crayons.red('red string', bold=True))
|
|
print(crayons.yellow('yellow string', bold=True))
|
|
print(crayons.magenta('magenta string', bold=True))
|
|
print(crayons.white('white string', bold=True))
|