def test_check_process(self): """ tests that check_process returns True when process is running and False otherwise """ runlog = CommandFileUtils(self.dist_version, self.log_file, self.log_level) proc = runlog.check_process('python') self.assertTrue(proc, '%s process is running: %s' % ('python', proc)) proc = runlog.check_process('SomeVeryUnlikelyProcessName') self.assertFalse(proc, proc)