def test_pkg_finder():
 mod1 = u'astropy.utils.introspection'
 mod2 = u'astropy.utils.tests.test_introspection'
 mod3 = u'astropy.utils.tests.test_introspection'
 assert (find_current_module(0).__name__ == mod1)
 assert (find_current_module(1).__name__ == mod2)
 assert (find_current_module(0, True).__name__ == mod3)

def test_pkg_finder ( ) : mod1 = u'astropy.utils.introspection' mod2 = u'astropy.utils.tests.test_introspection' mod3 = u'astropy.utils.tests.test_introspection' assert ( find_current_module ( 0 ) . __name__ == mod1 ) assert ( find_current_module ( 1 ) . __name__ == mod2 ) assert ( find_current_module ( 0 , True ) . __name__ == mod3 )
tests that the find_current_module function works .