コード例 #1
0
ファイル: test_logwatch.py プロジェクト: gugas1nwork/checkmk
def test_logwatch_groups_of_logfile_exception(group_patterns, filename):
    with pytest.raises(RuntimeError):
        logwatch._groups_of_logfile(group_patterns, filename)
コード例 #2
0
ファイル: test_logwatch.py プロジェクト: gugas1nwork/checkmk
def test_logwatch_groups_of_logfile(group_patterns, filename, expected):
    actual = logwatch._groups_of_logfile(group_patterns, filename)
    assert actual == expected