MCPcopy Create free account
hub / github.com/pytest-dev/pytest / __getitem__

Method __getitem__

testing/test_junitxml.py:114–117  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

112 return [t(x) for x in self.__node.getElementsByTagName(tag)]
113
114 def __getitem__(self, key):
115 node = self.__node.getAttributeNode(key)
116 if node is not None:
117 return node.value
118
119 def assert_attr(self, **kwargs):
120 __tracebackhide__ = True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected