diff options
author | Erik Rose <erik@mozilla.com> | 2011-11-08 10:16:59 -0800 |
---|---|---|
committer | Erik Rose <erik@mozilla.com> | 2011-11-08 10:16:59 -0800 |
commit | d05bb86a21f00a91179aa36ca127a9fe7a084670 (patch) | |
tree | ed9893a34df4f99e8c51c83215a6006b2d76413f | |
parent | db5582e39c07f333834a011ec195f0c47c57db5c (diff) | |
download | blessings-d05bb86a21f00a91179aa36ca127a9fe7a084670.tar.gz |
Test that colors are also '' when there's no tty.
-rw-r--r-- | blessings/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/blessings/tests.py b/blessings/tests.py index 11d5c19..751c2fb 100644 --- a/blessings/tests.py +++ b/blessings/tests.py @@ -26,6 +26,7 @@ def test_capability_without_tty(): """Assert capability templates are '' when stream is not a tty.""" t = Terminal(stream=StringIO()) eq_(t.save, '') + eq_(t.red, '') def test_parametrization(): |