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

Method test_get_keyword_args

Lib/test/test_xml_etree.py:2758–2761  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2756 self.assertEqual(wref(), None)
2757
2758 def test_get_keyword_args(self):
2759 e1 = ET.Element('foo' , x=1, y=2, z=3)
2760 self.assertEqual(e1.get('x', default=7), 1)
2761 self.assertEqual(e1.get('w', default=7), 7)
2762
2763 def test_pickle(self):
2764 # issue #16076: the C implementation wasn't pickleable.

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected