summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-05-08 20:00:52 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2017-05-08 20:00:52 +0200
commitef42840b3ec30e283e73f0710ccbd9c8b171080f (patch)
tree7ed5a10980ab9a0e26a102a35ce2c2b0537908f8
parent69aef18a79a8b23c66ade2aaf0234b46e845cf4c (diff)
downloadpsutil-ef42840b3ec30e283e73f0710ccbd9c8b171080f.tar.gz
rewording
-rwxr-xr-xpsutil/tests/test_misc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py
index 545c7af3..fdeca9b3 100755
--- a/psutil/tests/test_misc.py
+++ b/psutil/tests/test_misc.py
@@ -427,9 +427,10 @@ class TestWrapNumbers(unittest.TestCase):
self.assertEqual(wrap_numbers(input, 'disk_io'),
{'disk1': nt(100, 100, 210)})
- def test_diff_keys(self):
- # Emulate a case where the second call to disk_io_counters()
- # (or whatever) provides a new disk.
+ def test_changing_keys(self):
+ # Emulate a case where the second call to disk_io()
+ # (or whatever) provides a new disk, then the new disk
+ # disappears on the third call.
input = {'disk1': nt(5, 5, 5)}
self.assertEqual(wrap_numbers(input, 'disk_io'), input)
input = {'disk1': nt(5, 5, 5),