diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-09-10 19:22:53 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-09-10 19:22:53 +0200 |
commit | 273ea689749fcfcdad82ad638e829cad2aea4c28 (patch) | |
tree | 69147d550c24e1cf14cf96a3acc65975284297ce | |
parent | 72986d65b90b96b537190c73376ef2c46b309a45 (diff) | |
download | psutil-273ea689749fcfcdad82ad638e829cad2aea4c28.tar.gz |
add more linux tests
-rw-r--r-- | psutil/tests/test_linux.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py index e8cec3fd..e9f5555f 100644 --- a/psutil/tests/test_linux.py +++ b/psutil/tests/test_linux.py @@ -661,6 +661,11 @@ class TestSystemDisks(unittest.TestCase): @unittest.skipUnless(LINUX, "not a Linux system") class TestMisc(unittest.TestCase): + def test_boot_time(self): + vmstat_value = vmstat('boot time') + psutil_value = psutil.boot_time() + self.assertEqual(int(vmstat_value), int(psutil_value)) + @mock.patch('psutil.traceback.print_exc') def test_no_procfs_on_import(self, tb): my_procfs = tempfile.mkdtemp() |