@@ -0,0 +1,1239 @@
+%22%22%22Tests for IPython.utils.importstring.%22%22%22%0A%0A#-----------------------------------------------------------------------------%0A#  Copyright (C) 2013  The IPython Development Team%0A#%0A#  Distributed under the terms of the BSD License.  The full license is in%0A#  the file COPYING, distributed as part of this software.%0A#-----------------------------------------------------------------------------%0A%0A#-----------------------------------------------------------------------------%0A# Imports%0A#-----------------------------------------------------------------------------%0A%0Aimport nose.tools as nt%0A%0Afrom IPython.utils.importstring import import_item%0A%0A#-----------------------------------------------------------------------------%0A# Tests%0A#-----------------------------------------------------------------------------%0A%0Adef test_import_plain():%0A    %22Test simple imports%22%0A    import os%0A    os2 = import_item('os')%0A    nt.assert_is(os, os2)%0A%0A%0Adef test_import_nested():%0A    %22Test nested imports from the stdlib%22%0A    from os import path%0A    path2 = import_item('os.path')%0A    nt.assert_is(path, path2)%0A%0A%0Adef test_import_raises():%0A    %22Test that failing imports raise the right exception%22%0A    nt.assert_raises(ImportError, import_item, 'IPython.foobar')%0A    %0A

Add proper tests to importstring.