mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +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:
parent
fd89e3185c
commit
6d2a0f6ba7
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user