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

Method test_dict

Lib/test/test_interpreters/test_api.py:827–834  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

825 interp.prepare_main()
826
827 def test_dict(self):
828 values = {'spam': 42, 'eggs': 'ham'}
829 interp = interpreters.create()
830 interp.prepare_main(values)
831 out = _run_output(interp, dedent("""
832 print(spam, eggs)
833 """))
834 self.assertEqual(out.strip(), '42 ham')
835
836 def test_tuple(self):
837 values = {'spam': 42, 'eggs': 'ham'}

Callers

nothing calls this directly

Calls 6

dedentFunction · 0.90
prepare_mainMethod · 0.80
_run_outputFunction · 0.70
createMethod · 0.45
assertEqualMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected