summaryrefslogtreecommitdiff
path: root/ttystatus/pathname_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'ttystatus/pathname_tests.py')
-rw-r--r--ttystatus/pathname_tests.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/ttystatus/pathname_tests.py b/ttystatus/pathname_tests.py
index 7f09de0..1191f43 100644
--- a/ttystatus/pathname_tests.py
+++ b/ttystatus/pathname_tests.py
@@ -24,13 +24,16 @@ class PathnameTests(unittest.TestCase):
def setUp(self):
self.w = ttystatus.Pathname('foo')
+ def test_is_not_static_width(self):
+ self.assertFalse(self.w.static_width)
+
def test_is_empty_initially(self):
- self.assertEqual(self.w.render(), '')
+ self.assertEqual(self.w.render(0), '')
def test_updates(self):
self.w.update({'foo': 'bar'})
- self.assertEqual(self.w.render(), 'bar')
+ self.assertEqual(self.w.render(0), 'bar')
def test_handles_update_to_other_value(self):
self.w.update({'other': 1})
- self.assertEqual(self.w.render(), '')
+ self.assertEqual(self.w.render(0), '')