示例#1
0
 def test_success(self, mock_role, mock_group, mock_target):
     mock_role.return_value = "role"
     mock_group.return_value = "group"
     mock_target.return_value = "target"
     self.assertEqual(
         {"target_list": "target", "group_list": "group", "role_list": "role"}, cmd_acl.get_config(self.mock_env)
     )
示例#2
0
 def test_success(self, mock_role, mock_group, mock_target):
     mock_role.return_value = "role"
     mock_group.return_value = "group"
     mock_target.return_value = "target"
     self.assertEqual(
         {
             "target_list": "target",
             "group_list": "group",
             "role_list": "role",
         }, cmd_acl.get_config(self.mock_env))