(self)
| 402 | r"{5: [[]], 'xy\tab\n': (3,), (): {}}") |
| 403 | |
| 404 | def test_sort_dict(self): |
| 405 | d = dict.fromkeys('cba') |
| 406 | self.assertEqual(pprint.pformat(d, sort_dicts=False), "{'c': None, 'b': None, 'a': None}") |
| 407 | self.assertEqual(pprint.pformat([d, d], sort_dicts=False), |
| 408 | "[{'c': None, 'b': None, 'a': None}, {'c': None, 'b': None, 'a': None}]") |
| 409 | |
| 410 | def test_ordered_dict(self): |
| 411 | d = collections.OrderedDict() |
nothing calls this directly
no test coverage detected