mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
Add (abstract) get_clean() method to baserule
Also add a test to ensure it raises an AppArmorBug. Acked-by: Kshitij Gupta <kgupta8592@gmail.com>
This commit is contained in:
@@ -35,6 +35,11 @@ class TestBaserule(AATest):
|
||||
with self.assertRaises(AppArmorBug):
|
||||
BaseRule.match('foo')
|
||||
|
||||
def test_abstract_get_clean(self):
|
||||
obj = BaseRule()
|
||||
with self.assertRaises(AppArmorBug):
|
||||
obj.get_clean()
|
||||
|
||||
def test_is_equal_localvars(self):
|
||||
obj = BaseRule()
|
||||
with self.assertRaises(AppArmorBug):
|
||||
|
Reference in New Issue
Block a user