Listing visible nodes under a hidden group (iter_nodes).
(self)
| 1130 | ) |
| 1131 | |
| 1132 | def test05b_iterNodesHidden(self): |
| 1133 | """Listing visible nodes under a hidden group (iter_nodes).""" |
| 1134 | |
| 1135 | hidden = self.hidden |
| 1136 | |
| 1137 | node_to_find = "/_p_g/a" |
| 1138 | found_node = False |
| 1139 | for node in self.h5file.iter_nodes("/_p_g"): |
| 1140 | pathname = node._v_pathname |
| 1141 | if pathname == node_to_find: |
| 1142 | found_node = True |
| 1143 | self.assertIn( |
| 1144 | pathname, hidden, f"Listed hidden node ``{pathname}``." |
| 1145 | ) |
| 1146 | |
| 1147 | self.assertTrue( |
| 1148 | found_node, "Hidden node ``%s`` was not listed." % node_to_find |
| 1149 | ) |
| 1150 | |
| 1151 | # The test behind commented out because the .objects dictionary |
| 1152 | # has been removed (as well as .leaves and .groups) |
nothing calls this directly
no test coverage detected