MCPcopy Create free account
hub / github.com/PyTables/PyTables / test05b_iterNodesHidden

Method test05b_iterNodesHidden

tables/tests/test_tree.py:1132–1149  ·  view source on GitHub ↗

Listing visible nodes under a hidden group (iter_nodes).

(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

iter_nodesMethod · 0.80

Tested by

no test coverage detected