diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-04-15 15:46:33 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-04-15 15:46:33 +0100 |
commit | 9cb92e835f1b37a5e5a30c0fdbc76ab3bb220f89 (patch) | |
tree | 5f23e6d77f37694b18d03ab0d3820995f39fe41f /ttystatus/pathname_tests.py | |
parent | 5cf3c6ea230fab510fb44aa113066a5eb69183f8 (diff) | |
download | python-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.py | 6 |
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(), '') |