summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Rose <erik@mozilla.com>2011-11-08 10:16:59 -0800
committerErik Rose <erik@mozilla.com>2011-11-08 10:16:59 -0800
commitd05bb86a21f00a91179aa36ca127a9fe7a084670 (patch)
treeed9893a34df4f99e8c51c83215a6006b2d76413f
parentdb5582e39c07f333834a011ec195f0c47c57db5c (diff)
downloadblessings-d05bb86a21f00a91179aa36ca127a9fe7a084670.tar.gz
Test that colors are also '' when there's no tty.
-rw-r--r--blessings/tests.py1
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():