mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-devtest
synced 2026-01-15 10:23:32 +01:00
14 lines
432 B
Python
14 lines
432 B
Python
|
|
#!/usr/bin/python3
|
||
|
|
|
||
|
|
from jwutils.misc import multi_regex_edit
|
||
|
|
from jwutils.log import *
|
||
|
|
from devtest.os.test.cases import Audit as TestCase
|
||
|
|
|
||
|
|
if __name__ == '__main__':
|
||
|
|
set_level(INFO)
|
||
|
|
refpath = 'ausearch.log.ref'
|
||
|
|
fake_input = 'ausearch.log.fake-input'
|
||
|
|
with open(fake_input, "r") as f:
|
||
|
|
lines = f.readlines()
|
||
|
|
features = set(['polp'])
|
||
|
|
print(TestCase(refpath, write_response=True).test(lines, features))
|