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

Method test_expand_frozendict

Lib/test/test_pprint.py:1675–1687  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1673})""")
1674
1675 def test_expand_frozendict(self):
1676 dummy_frozendict = frozendict(
1677 {"foo": "bar", "baz": 123, "qux": [1, 2]}
1678 )
1679 self.assertEqual(
1680 pprint.pformat(dummy_frozendict, width=20, indent=4, expand=True),
1681 """\
1682frozendict({
1683 'baz': 123,
1684 'foo': 'bar',
1685 'qux': [1, 2],
1686})""",
1687 )
1688
1689 def test_expand_bytes(self):
1690 dummy_bytes = b"Hello world! foo bar baz 123 456 789"

Callers

nothing calls this directly

Calls 3

frozendictClass · 0.85
pformatMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected