We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 258b3df commit 09abcf5Copy full SHA for 09abcf5
1 file changed
Lib/test/test_dict.py
@@ -1766,6 +1766,15 @@ def test_update(self):
1766
self.assertEqual(d, frozendict({'x': 1, 'y': 2}))
1767
self.assertEqual(copy, frozendict({'x': 1}))
1768
1769
+ def test_repr(self):
1770
+ d = frozendict(x=1, y=2)
1771
+ self.assertEqual(repr(d), "frozendict({'x': 1, 'y': 2})")
1772
+
1773
+ class MyFrozenDict(frozendict):
1774
+ pass
1775
+ d = MyFrozenDict(x=1, y=2)
1776
+ self.assertEqual(repr(d), "MyFrozenDict({'x': 1, 'y': 2})")
1777
1778
1779
if __name__ == "__main__":
1780
unittest.main()
0 commit comments