def testUptime(self):
        global logger
        system = System(logger)
        metrics = system.check({})
        self.assertTrue("system.uptime" in metrics)
        self.assertTrue(metrics["system.uptime"] > 0)
dataset/ETHPy150Open serverdensity/sd-agent/tests/checks/mock/test_sysstat.py/TestSystem.testUptime/original