2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-18 14:00:43 +00:00

Use parse() instead of _parse() in LogprofHeaderTest

The *LogprofHeaderTest accidently used the private _parse() insteaf of
the official parse().
This commit is contained in:
Christian Boltz
2021-03-07 18:28:27 +01:00
parent c2718e2677
commit 4c77f7193b
13 changed files with 15 additions and 15 deletions

View File

@@ -824,13 +824,13 @@ class FileLogprofHeaderTest(AATest):
]
def _run_test(self, params, expected):
obj = FileRule._parse(params[0])
obj = FileRule.parse(params[0])
if params[1] or params[2]:
obj.original_perms = {'allow': { 'all': params[1], 'owner': params[2]}}
self.assertEqual(obj.logprof_header(), expected)
def test_empty_original_perms(self):
obj = FileRule._parse('/foo rw,')
obj = FileRule.parse('/foo rw,')
obj.original_perms = {'allow': { 'all': set(), 'owner': set()}}
self.assertEqual(obj.logprof_header(), [_('Path'), '/foo', _('New Mode'), _('rw')])