[tests/cpu] Fix expectation for CPU module output

This commit is contained in:
Tobias Witek 2017-06-15 14:06:45 +02:00
parent d189b3a335
commit c7e2f39132

View file

@ -22,7 +22,7 @@ class TestCPUModule(unittest.TestCase):
self.psutil.cpu_percent.return_value = 21.0 self.psutil.cpu_percent.return_value = 21.0
self.module.update_all() self.module.update_all()
for widget in self.module.widgets(): for widget in self.module.widgets():
self.assertEquals(len(widget.full_text()), len("100.00%")) self.assertEquals(len(widget.full_text()), len("99.0%"))
def test_leftclick(self): def test_leftclick(self):
mocks.mouseEvent(stdin=self.stdin, button=LEFT_MOUSE, inp=self.input, module=self.module) mocks.mouseEvent(stdin=self.stdin, button=LEFT_MOUSE, inp=self.input, module=self.module)