def test_not_all_filter_conditions_match(self): value = proc.num(name='wrong', state=PROCESS_STATE, host_os=self.host_os) assert_equal(0, 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_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_name_filter_works(self): value = proc.num(name=PROCESS_NAME, 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_default_matches_all(self): value = proc.num(host_os=self.host_os) assert_equal(len(self.processes), value)