def test_logwatch_groups_of_logfile_exception(group_patterns, filename): with pytest.raises(RuntimeError): logwatch._groups_of_logfile(group_patterns, filename)
def test_logwatch_groups_of_logfile(group_patterns, filename, expected): actual = logwatch._groups_of_logfile(group_patterns, filename) assert actual == expected