def test_process_infos_contains_processes_run_by_root(self): process_infos = [proc_info for proc_info in self.linux.process_infos() if proc_info.uid == 0] # at least init should be here assert_less(0, len(process_infos))
def test_process_infos_contains_processes_run_by_root(self): process_infos = [ proc_info for proc_info in self.linux.process_infos() if proc_info.uid == 0 ] # at least init should be here assert_less(0, len(process_infos))
def test_returns_dict(self): ensure_contains_only_formatted_lines(FILE_PATH, 'key value') d = dict_from_file(FILE_PATH) assert_is_instance(d, dict) assert_less(0, len(d))
def test_per_cpu_load_is_smaller_than_total_load(self): total_load = cpu.load('all', host_os=self.host_os) per_cpu_load = cpu.load('percpu', host_os=self.host_os) assert_less(per_cpu_load, total_load)