summaryrefslogtreecommitdiff
path: root/ttystatus/pathname_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-04-15 15:46:33 +0100
committerLars Wirzenius <liw@liw.fi>2012-04-15 15:46:33 +0100
commit9cb92e835f1b37a5e5a30c0fdbc76ab3bb220f89 (patch)
tree5f23e6d77f37694b18d03ab0d3820995f39fe41f /ttystatus/pathname_tests.py
parent5cf3c6ea230fab510fb44aa113066a5eb69183f8 (diff)
downloadpython-ttystatus-9cb92e835f1b37a5e5a30c0fdbc76ab3bb220f89.tar.gz
Change __str__ to render
We'll want to pass in arguments to render (i.e., width), so using __str__ is not going to be appropriate.
Diffstat (limited to 'ttystatus/pathname_tests.py')
-rw-r--r--ttystatus/pathname_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ttystatus/pathname_tests.py b/ttystatus/pathname_tests.py
index f9e62ef..7f09de0 100644
--- a/ttystatus/pathname_tests.py
+++ b/ttystatus/pathname_tests.py
@@ -25,12 +25,12 @@ class PathnameTests(unittest.TestCase):
self.w = ttystatus.Pathname('foo')
def test_is_empty_initially(self):
- self.assertEqual(str(self.w), '')
+ self.assertEqual(self.w.render(), '')
def test_updates(self):
self.w.update({'foo': 'bar'})
- self.assertEqual(str(self.w), 'bar')
+ self.assertEqual(self.w.render(), 'bar')
def test_handles_update_to_other_value(self):
self.w.update({'other': 1})
- self.assertEqual(str(self.w), '')
+ self.assertEqual(self.w.render(), '')