diff options
Diffstat (limited to 'blessings/tests.py')
-rw-r--r-- | blessings/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/blessings/tests.py b/blessings/tests.py index f37bd72..a02a392 100644 --- a/blessings/tests.py +++ b/blessings/tests.py @@ -223,3 +223,9 @@ def test_nice_formatting_errors(): t.bold_misspelled('a', 'b') # >1 string arg except TypeError, e: assert 'probably misspelled' not in e.args[0] + + +def test_init_descriptor_always_initted(): + """We should be able to get a height and width even on no-tty Terminals.""" + t = Terminal(stream=StringIO()) + eq_(type(t.height), int) |