test that config magic prints available configs in unique and sorted order.
()
| 113 | _ip.magic('config') |
| 114 | |
| 115 | def test_config_available_configs(): |
| 116 | """ test that config magic prints available configs in unique and |
| 117 | sorted order. """ |
| 118 | with capture_output() as captured: |
| 119 | _ip.magic('config') |
| 120 | |
| 121 | stdout = captured.stdout |
| 122 | config_classes = stdout.strip().split('\n')[1:] |
| 123 | nt.assert_list_equal(config_classes, sorted(set(config_classes))) |
| 124 | |
| 125 | def test_config_print_class(): |
| 126 | """ test that config with a classname prints the class's options. """ |
nothing calls this directly
no test coverage detected