Skip to content

Commit

Permalink
add more linux tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Sep 10, 2016
1 parent 72986d6 commit 273ea68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions psutil/tests/test_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,11 @@ def open_mock(name, *args, **kwargs):
@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()
Expand Down

0 comments on commit 273ea68

Please sign in to comment.