def test_process_matches(ps_line, ps_pattern, user_pattern, result): psi = ps.ps_info(ps_line[0]) # type: ignore[call-arg] matches_attr = ps.process_attributes_match(psi, user_pattern, (None, False)) matches_proc = ps.process_matches(ps_line[1:], ps_pattern) assert (matches_attr and matches_proc) == result
def test_process_matches(ps_line, ps_pattern, user_pattern, result): psi = ps.PsInfo(ps_line[0]) matches_attr = ps.process_attributes_match(psi, user_pattern, (None, False)) matches_proc = ps.process_matches(ps_line[1:], ps_pattern) assert (matches_attr and matches_proc) == result