提交 1f90393a 编写于 作者: N Nicolas Hennion

Correct unitary test following PR #1873

上级 0e9e5e95
......@@ -343,12 +343,12 @@ class TestGlances(unittest.TestCase):
# GlancesHistory
from glances.history import GlancesHistory
h = GlancesHistory()
h.add('a', 1)
h.add('a', 2)
h.add('a', 3)
h.add('b', 10)
h.add('b', 20)
h.add('b', 30)
h.add('a', 1, history_max_size=100)
h.add('a', 2, history_max_size=100)
h.add('a', 3, history_max_size=100)
h.add('b', 10, history_max_size=100)
h.add('b', 20, history_max_size=100)
h.add('b', 30, history_max_size=100)
self.assertEqual(len(h.get()), 2)
self.assertEqual(len(h.get()['a']), 3)
h.reset()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册