测试 Resource.node_list 获取所有节点名列表
(resource: Resource)
| 133 | |
| 134 | |
| 135 | def test_resource_node_list(resource: Resource): |
| 136 | """测试 Resource.node_list 获取所有节点名列表""" |
| 137 | print("\n=== test_resource_node_list ===") |
| 138 | |
| 139 | node_list = resource.node_list |
| 140 | assert_true(isinstance(node_list, list), "node_list should be list") |
| 141 | assert_true(len(node_list) > 0, "node_list should not be empty") |
| 142 | assert_true("TestBasic" in node_list, "TestBasic should be in node_list") |
| 143 | |
| 144 | print(f" Found {len(node_list)} nodes: {node_list[:5]}...") |
| 145 | print(" PASS: resource.node_list") |
| 146 | |
| 147 | |
| 148 | # ============================================================================ |
no test coverage detected