##// END OF EJS Templates
Merge my trunk-dev, with following mods:...
Merge my trunk-dev, with following mods: * cd completer: show bookmarks if no other completions are available. * Remove ipy_leo.py. "easy_install ipython-extension" to get it. (done to decouple it from ipython release cycle) * sh profile: easy way to give 'title' to prompt: assign to variable '_prompt_title'. It looks like this:: [~]|1> _prompt_title = 'sudo!' sudo![~]|2> * %rehashx: Aliases no longer contain dots. python3.0 binary will create alias python30. Fixes: #259716 "commands with dots in them don't work" * %cpaste: %cpaste -r repeats the last pasted block. The block is assigned to pasted_block even if code raises exception. * %edit: If you do '%edit pasted_block', pasted_block variable gets updated with new data (so repeated editing makes sense) Test mods: Add test_magic.py, with test_rehashx

File last commit:

r1617:49915b40
r1737:2a72a835 merge
Show More
test_genutils.py
31 lines | 1007 B | text/x-python | PythonLexer
# encoding: utf-8
"""Tests for genutils.py"""
__docformat__ = "restructuredtext en"
#-----------------------------------------------------------------------------
# Copyright (C) 2008 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
from IPython import genutils
def test_get_home_dir():
"""Make sure we can get the home directory."""
home_dir = genutils.get_home_dir()
def test_get_ipython_dir():
"""Make sure we can get the ipython directory."""
ipdir = genutils.get_ipython_dir()
def test_get_security_dir():
"""Make sure we can get the ipython/security directory."""
sdir = genutils.get_security_dir()