コード例 #1
0
    def test_borked_obj_is_covered_3(self):
        obj = SignalRule.parse('signal send set=quit peer=/foo,')

        testobj = SignalRule('send', 'quit', '/foo')
        testobj.peer = ''

        with self.assertRaises(AppArmorBug):
            obj.is_covered(testobj)
コード例 #2
0
 def test_empty_data_3(self):
     obj = SignalRule('send', 'quit', '/foo')
     obj.peer = ''
     # no signal set, and ALL not set
     with self.assertRaises(AppArmorBug):
         obj.get_clean(1)