Listing visible nodes under a hidden group (list_nodes).
(self)
| 1111 | ) |
| 1112 | |
| 1113 | def test05_listNodesHidden(self): |
| 1114 | """Listing visible nodes under a hidden group (list_nodes).""" |
| 1115 | |
| 1116 | hidden = self.hidden |
| 1117 | |
| 1118 | node_to_find = "/_p_g/a" |
| 1119 | found_node = False |
| 1120 | for node in self.h5file.list_nodes("/_p_g"): |
| 1121 | pathname = node._v_pathname |
| 1122 | if pathname == node_to_find: |
| 1123 | found_node = True |
| 1124 | self.assertIn( |
| 1125 | pathname, hidden, f"Listed hidden node ``{pathname}``." |
| 1126 | ) |
| 1127 | |
| 1128 | self.assertTrue( |
| 1129 | found_node, "Hidden node ``%s`` was not listed." % node_to_find |
| 1130 | ) |
| 1131 | |
| 1132 | def test05b_iterNodesHidden(self): |
| 1133 | """Listing visible nodes under a hidden group (iter_nodes).""" |
nothing calls this directly
no test coverage detected