def test_borked_obj_is_covered_1(self): obj = SignalRule.parse('signal send peer=/foo,') testobj = SignalRule('send', 'quit', '/foo') testobj.access = '' with self.assertRaises(AppArmorBug): obj.is_covered(testobj)
def test_empty_data_1(self): obj = SignalRule('send', 'quit', '/foo') obj.access = '' # no access set, and ALL not set with self.assertRaises(AppArmorBug): obj.get_clean(1)