def testExpandAvcRule(self): #TODO: add more examples here to cover different cases expanded_allow_list = SELinux_CTS.expand_avc_rule( self.test_policy, self.test_policy.allow_rules[0]) for a in expected_final_allow_list[0]: self.failUnless(a in expanded_allow_list) expanded_neverallow_list = SELinux_CTS.expand_avc_rule( self.test_policy, self.test_policy.neverallow_rules[0]) for n in expected_final_neverallow_list[0]: self.failUnless(n in expanded_neverallow_list)