def test_rehashx():
    _ip.alias_manager.clear_aliases()
    del _ip.db['syscmdlist']
    _ip.magic('rehashx')
    nt.assert_true((len(_ip.alias_manager.aliases) > 10))
    for (name, cmd) in _ip.alias_manager.aliases:
        nt.assert_not_in('.', name)
    scoms = _ip.db['syscmdlist']
    nt.assert_true((len(scoms) > 10))
def test_rehashx():
    _ip.alias_manager.clear_aliases()
    del _ip.db['syscmdlist']
    _ip.magic('rehashx')
    nt.assert_true((len(_ip.alias_manager.aliases) > 10))
    for (name, cmd) in _ip.alias_manager.aliases:
        nt.assert_not_in('.', name)
    scoms = _ip.db['syscmdlist']
    nt.assert_true((len(scoms) > 10))