2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 01:57:43 +00:00

InvalidChangeProfileInit: fix testing for missing params

- use valid values for given params
- add testcase with two given / one missing params
This commit is contained in:
Christian Boltz 2025-06-15 18:03:56 +02:00
parent fd89e3185c
commit 6d2a0f6ba7
No known key found for this signature in database
GPG Key ID: C6A682EA63C82F1C

View File

@ -182,7 +182,11 @@ class InvalidChangeProfileInit(AATest):
def test_missing_params_2(self):
with self.assertRaises(TypeError):
ChangeProfileRule('inet')
ChangeProfileRule(None)
def test_missing_params_3(self):
with self.assertRaises(TypeError):
ChangeProfileRule(None, ChangeProfileRule.ALL)
class InvalidChangeProfileTest(AATest):