MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_get_keyword_args

Method test_get_keyword_args

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

Source from the content-addressed store, hash-verified

2722 self.assertEqual(wref(), None)
2723
2724 def test_get_keyword_args(self):
2725 e1 = ET.Element('foo' , x=1, y=2, z=3)
2726 self.assertEqual(e1.get('x', default=7), 1)
2727 self.assertEqual(e1.get('w', default=7), 7)
2728
2729 def test_pickle(self):
2730 # 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