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

Method test05_listNodesHidden

tables/tests/test_tree.py:1113–1130  ·  view source on GitHub ↗

Listing visible nodes under a hidden group (list_nodes).

(self)

Source from the content-addressed store, hash-verified

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)."""

Callers

nothing calls this directly

Calls 1

list_nodesMethod · 0.80

Tested by

no test coverage detected