Ejemplo n.º 1
0
    def test_borked_obj_is_covered_1(self):
        obj = NetworkRule.parse('network inet,')

        testobj = NetworkRule('inet', 'stream')
        testobj.domain = ''

        with self.assertRaises(AppArmorBug):
            obj.is_covered(testobj)
Ejemplo n.º 2
0
    def test_borked_obj_is_covered_1(self):
        obj = NetworkRule.parse('network inet,')

        testobj = NetworkRule('inet', 'stream')
        testobj.domain = ''

        with self.assertRaises(AppArmorBug):
            obj.is_covered(testobj)
Ejemplo n.º 3
0
 def test_empty_net_data_1(self):
     obj = NetworkRule('inet', 'stream')
     obj.domain = ''
     # no domain set, and ALL not set
     with self.assertRaises(AppArmorBug):
         obj.get_clean(1)
Ejemplo n.º 4
0
 def test_empty_net_data_1(self):
     obj = NetworkRule('inet', 'stream')
     obj.domain = ''
     # no domain set, and ALL not set
     with self.assertRaises(AppArmorBug):
         obj.get_clean(1)