diff options
-rw-r--r-- | ttystatus/percent_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ttystatus/percent_tests.py b/ttystatus/percent_tests.py index 441710d..9e29530 100644 --- a/ttystatus/percent_tests.py +++ b/ttystatus/percent_tests.py @@ -35,3 +35,7 @@ class PercentDoneTests(unittest.TestCase): self.w.update({ 'done': '', 'total': '' }, 999) self.assertEqual(str(self.w), '0.0 %') + def test_handles_zero_total(self): + self.w.update({ 'done': '', 'total': 0 }, 999) + self.assertEqual(str(self.w), '0.0 %') + |