def test_multiple_filter_conditions_match(self): value = proc.num(name=PROCESS_NAME, state=PROCESS_STATE, host_os=self.host_os) assert_greater(len(self.processes), value)
def test_user_filter_works(self): value = proc.num(state=PROCESS_STATE, host_os=self.host_os) assert_greater(len(self.processes), value)
def test_user_filter_works(self): value = proc.num(cmdline=PROCESS_COMMAND_LINE, host_os=self.host_os) assert_greater(len(self.processes), value)
def test_returns_float_less_than_hundred(self): for state in CPU_TIMES: percent = cpu.util('all', state=state, host_os=self.host_os) assert_is_instance(percent, float) assert_greater(100, percent)
def test_name_filter_works(self): value = proc.num(name=PROCESS_NAME, host_os=self.host_os) assert_greater(len(self.processes), value)