test that config with a classname prints the class's options.
()
| 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. """ |
| 127 | with capture_output() as captured: |
| 128 | _ip.magic('config TerminalInteractiveShell') |
| 129 | |
| 130 | stdout = captured.stdout |
| 131 | if not re.match("TerminalInteractiveShell.* options", stdout.splitlines()[0]): |
| 132 | print(stdout) |
| 133 | raise AssertionError("1st line of stdout not like " |
| 134 | "'TerminalInteractiveShell.* options'") |
| 135 | |
| 136 | def test_rehashx(): |
| 137 | # clear up everything |
nothing calls this directly
no test coverage detected