()
| 134 | "'TerminalInteractiveShell.* options'") |
| 135 | |
| 136 | def test_rehashx(): |
| 137 | # clear up everything |
| 138 | _ip.alias_manager.clear_aliases() |
| 139 | del _ip.db['syscmdlist'] |
| 140 | |
| 141 | _ip.magic('rehashx') |
| 142 | # Practically ALL ipython development systems will have more than 10 aliases |
| 143 | |
| 144 | nt.assert_true(len(_ip.alias_manager.aliases) > 10) |
| 145 | for name, cmd in _ip.alias_manager.aliases: |
| 146 | # we must strip dots from alias names |
| 147 | nt.assert_not_in('.', name) |
| 148 | |
| 149 | # rehashx must fill up syscmdlist |
| 150 | scoms = _ip.db['syscmdlist'] |
| 151 | nt.assert_true(len(scoms) > 10) |
| 152 | |
| 153 | |
| 154 |
nothing calls this directly
no test coverage detected