()
| 428 | |
| 429 | |
| 430 | def test_pretty_environ(): |
| 431 | dict_repr = pretty.pretty(dict(os.environ)) |
| 432 | # reindent to align with 'environ' prefix |
| 433 | dict_indented = dict_repr.replace('\n', '\n' + (' ' * len('environ'))) |
| 434 | env_repr = pretty.pretty(os.environ) |
| 435 | nt.assert_equal(env_repr, 'environ' + dict_indented) |
| 436 | |
| 437 | |
| 438 | def test_function_pretty(): |