summaryrefslogtreecommitdiff
path: root/ttystatus/string_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'ttystatus/string_tests.py')
-rw-r--r--ttystatus/string_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ttystatus/string_tests.py b/ttystatus/string_tests.py
index b0e17dd..39f480a 100644
--- a/ttystatus/string_tests.py
+++ b/ttystatus/string_tests.py
@@ -30,3 +30,7 @@ class StringTests(unittest.TestCase):
def test_updates(self):
self.s.update({'foo': 'bar'}, 999)
self.assertEqual(str(self.s), 'bar')
+
+ def test_handles_non_string_value(self):
+ self.s.update({'foo': 123}, 999)
+ self.assertEqual(str(self.s), '123')