def test(self): uptime_is_equal = self.almost_equal(myscript.uptime(), self.expected_result) self.assertTrue(uptime_is_equal)
def write_datafile(self): self.datafile.uptime = myscript.uptime() self.datafile.data = myscript.ProcNetDev().read() self.datafile.write()