(self)
| 517 | r"{5: [[]], 'xy\tab\n': (3,), (): {}}") |
| 518 | |
| 519 | def test_sort_dict(self): |
| 520 | d = dict.fromkeys('cba') |
| 521 | self.assertEqual(pprint.pformat(d, sort_dicts=False), "{'c': None, 'b': None, 'a': None}") |
| 522 | self.assertEqual(pprint.pformat([d, d], sort_dicts=False), |
| 523 | "[{'c': None, 'b': None, 'a': None}, {'c': None, 'b': None, 'a': None}]") |
| 524 | |
| 525 | def test_ordered_dict(self): |
| 526 | d = collections.OrderedDict() |
nothing calls this directly
no test coverage detected