def _do_test(rule, rules, ecode, ecodes): rule_list, ec_list = rbac_rv._prepare_multi_policy(rule, rules, ecode, ecodes)
def _do_test(rule, rules, ecode, ecodes, exp_rules, exp_ecodes): rule_list, ec_list = rbac_rv._prepare_multi_policy(rule, rules, ecode, ecodes) self.assertEqual(rule_list, exp_rules) self.assertEqual(ec_list, exp_ecodes)