From bb2c92732ee7cf834d937025a03c87d7ee5bc343 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Fri, 6 Mar 2020 07:03:18 +0100 Subject: [PATCH] [tests/traffic] Fix tests for module traffic --- tests/modules/test_traffic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/modules/test_traffic.py b/tests/modules/test_traffic.py index 951a4d8..c312d97 100644 --- a/tests/modules/test_traffic.py +++ b/tests/modules/test_traffic.py @@ -14,10 +14,10 @@ class TestTrafficModule(unittest.TestCase): def test_get_minwidth_str(self): # default value (two digits after dot) - self.assertEqual(self.module.get_minwidth_str(), "1000.00MB") + self.assertEqual(self.module.get_minwidth_str(), "1000.00KiB/s") # integer value self.module._format = "{:.0f}" - self.assertEqual(self.module.get_minwidth_str(), "1000MB") + self.assertEqual(self.module.get_minwidth_str(), "1000KiB/s") # just one digit after dot self.module._format = "{:.1f}" - self.assertEqual(self.module.get_minwidth_str(), "1000.0MB") + self.assertEqual(self.module.get_minwidth_str(), "1000.0KiB/s")