MCPcopy Index your code
hub / github.com/python/cpython / MyTreeBuilder

Class MyTreeBuilder

Lib/test/test_xml_etree.py:3834–3836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3832
3833 def test_subclass(self):
3834 class MyTreeBuilder(ET.TreeBuilder):
3835 def foobar(self, x):
3836 return x * 2
3837
3838 tb = MyTreeBuilder()
3839 self.assertEqual(tb.foobar(10), 20)

Callers 2

test_subclassMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_subclassMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…