##// END OF EJS Templates
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ipython branch. This is not a true merge in the formal sense because all history is not coming over with the files. For a detailed history of the added files, please see the ipython1-dev branch or the svn repository on scipy.org that ipython1-dev came from. More specifically, here is what I have done in this commit: 1) Moved the following by hand ipython1.config -> IPython.config ipython1.kernel -> IPython.kernel ipython1.external -> IPython.external ipython1.core -> IPython.kernel.core ipython1.testutils -> IPython.testing ipython1.tools -> IPython.tools 2) Moved IPython.tools.guid -> IPython1.external.guid 3) Renamed: ipython1 -> IPython IPython.core -> IPython.kernel.core IPython.testutils -> IPython.testing 4) Then did a "bzr add" for all the new stuff. That is all folks!

File last commit:

r1234:52b55407
r1234:52b55407
Show More
test_tools_utils.py
36 lines | 1.4 KiB | text/x-python | PythonLexer
#!/usr/bin/env python
"""Testing script for the tools.utils module.
"""
# Module imports
from IPython.testutils import tcommon
from IPython.testutils.tcommon import *
# If you have standalone doctests in a separate file, set their names in the
# dt_files variable (as a single string or a list thereof). The mkPath call
# forms an absolute path based on the current file, it is not needed if you
# provide the full pahts.
dt_files = fullPath(__file__,['tst_tools_utils_doctest.txt',
'tst_tools_utils_doctest2.txt'])
# If you have any modules whose docstrings should be scanned for embedded tests
# as examples accorging to standard doctest practice, set them here (as a
# single string or a list thereof):
dt_modules = 'IPython.tools.utils'
##########################################################################
### Regular unittest test classes go here
## class utilsTestCase(unittest.TestCase):
## def test_foo(self):
## pass
##########################################################################
### Main
# This ensures that the code will run either standalone as a script, or that it
# can be picked up by Twisted's `trial` test wrapper to run all the tests.
if tcommon.pexpect is not None:
if __name__ == '__main__':
unittest.main(testLoader=IPDocTestLoader(dt_files,dt_modules))
else:
testSuite = lambda : makeTestSuite(__name__,dt_files,dt_modules)