##// END OF EJS Templates
New version of ipcluster and docs updates....
New version of ipcluster and docs updates. This branch has a complete rewrite of the ipcluster script. The script is now based on Twisted and has support for starting clusters using PBS, mpirun and on localhost. The developer docs have been fully updated to reflect our current dev workflow with lp and bzr. The changelog has been reformatted some to keep its style consistent. A new security document has been aded that describes the Foolscap security model in depth. Minor fixed to ipengine and ipcluster.

File last commit:

r1735:8b145d5b
r1797:a2c0df6b merge
Show More
test_magic.py
21 lines | 585 B | text/x-python | PythonLexer
""" Tests for various magic functions
Needs to be run by nose (to make ipython session available)
"""
def test_rehashx():
# clear up everything
_ip.IP.alias_table.clear()
del _ip.db['syscmdlist']
_ip.magic('rehashx')
# Practically ALL ipython development systems will have more than 10 aliases
assert len(_ip.IP.alias_table) > 10
for key, val in _ip.IP.alias_table.items():
# we must strip dots from alias names
assert '.' not in key
# rehashx must fill up syscmdlist
scoms = _ip.db['syscmdlist']
assert len(scoms) > 10