diff options
Diffstat (limited to 'ttystatus/counter_tests.py')
-rw-r--r-- | ttystatus/counter_tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ttystatus/counter_tests.py b/ttystatus/counter_tests.py index f7dc3e1..638de6a 100644 --- a/ttystatus/counter_tests.py +++ b/ttystatus/counter_tests.py @@ -25,19 +25,19 @@ class CounterTests(unittest.TestCase): self.w = ttystatus.Counter('foo') def test_counts_zero_initially(self): - self.assertEqual(str(self.w), '0') + self.assertEqual(self.w.render(), '0') def test_counts_one_change(self): self.w.update({ 'foo': 'a' }) - self.assertEqual(str(self.w), '1') + self.assertEqual(self.w.render(), '1') def test_counts_two_changes(self): self.w.update({ 'foo': 'a' }) self.w.update({ 'foo': 'b' }) - self.assertEqual(str(self.w), '2') + self.assertEqual(self.w.render(), '2') def test_does_not_count_if_value_does_not_change(self): self.w.update({ 'foo': 'a' }) self.w.update({ 'foo': 'a' }) - self.assertEqual(str(self.w), '1') + self.assertEqual(self.w.render(), '1') |