(dictName, classname)
| 1026 | """Object dictionaries conformance with ``walk_nodes()``.""" |
| 1027 | |
| 1028 | def dictCheck(dictName, classname): |
| 1029 | file_ = self.h5file |
| 1030 | |
| 1031 | objects = getattr(file_, dictName) |
| 1032 | walkPaths = [ |
| 1033 | node._v_pathname for node in file_.walk_nodes("/", classname) |
| 1034 | ] |
| 1035 | dictPaths = [path for path in objects] |
| 1036 | walkPaths.sort() |
| 1037 | dictPaths.sort() |
| 1038 | self.assertEqual( |
| 1039 | walkPaths, |
| 1040 | dictPaths, |
| 1041 | "nodes in ``%s`` do not match those from ``walk_nodes()``" |
| 1042 | % dictName, |
| 1043 | ) |
| 1044 | self.assertEqual( |
| 1045 | len(walkPaths), |
| 1046 | len(objects), |
| 1047 | "length of ``%s`` differs from that of ``walk_nodes()``" |
| 1048 | % dictName, |
| 1049 | ) |
| 1050 | |
| 1051 | warnings.filterwarnings("ignore", category=DeprecationWarning) |
| 1052 |
nothing calls this directly
no test coverage detected