Verify the pretty-printing of dictionaries
(self)
| 78 | self.assertGdbRepr(None) |
| 79 | |
| 80 | def test_dicts(self): |
| 81 | 'Verify the pretty-printing of dictionaries' |
| 82 | self.assertGdbRepr({}) |
| 83 | self.assertGdbRepr({'foo': 'bar'}, "{'foo': 'bar'}") |
| 84 | # Python preserves insertion order since 3.6 |
| 85 | self.assertGdbRepr({'foo': 'bar', 'douglas': 42}, |
| 86 | "{'foo': 'bar', 'douglas': 42}") |
| 87 | |
| 88 | # frozendict |
| 89 | self.assertGdbRepr(frozendict(), |
| 90 | "frozendict({})") |
| 91 | self.assertGdbRepr(frozendict({'foo': 'bar', 'douglas': 42}), |
| 92 | "frozendict({'foo': 'bar', 'douglas': 42})") |
| 93 | |
| 94 | def test_lists(self): |
| 95 | 'Verify the pretty-printing of lists' |
nothing calls this directly
no test coverage detected