diff options
Diffstat (limited to 'ttystatus/index_tests.py')
-rw-r--r-- | ttystatus/index_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ttystatus/index_tests.py b/ttystatus/index_tests.py index d3d420e..05d2db7 100644 --- a/ttystatus/index_tests.py +++ b/ttystatus/index_tests.py @@ -25,13 +25,13 @@ class IndexTests(unittest.TestCase): self.w = ttystatus.Index('foo', 'foos') def test_is_zero_initially(self): - self.assertEqual(str(self.w), '0/0') + self.assertEqual(self.w.render(), '0/0') def test_gets_index_right(self): self.w.update({ 'foo': 'x', 'foos': ['a', 'x', 'b'] }) - self.assertEqual(str(self.w), '2/3') + self.assertEqual(self.w.render(), '2/3') def test_handles_value_not_in_list(self): self.w.update({ 'foo': 'xxx', 'foos': ['a', 'x', 'b'] }) - self.assertEqual(str(self.w), '0/3') + self.assertEqual(self.w.render(), '0/3') |