def test_info():
    i = inspector.info(Call, oname='Call')
    nt.assert_equal(i['type_name'], 'type')
    nt.assert_equal(i['base_class'], "<class 'type'>")
    nt.assert_equal(i['string_form'], "<class 'IPython.core.tests.test_oinspect.Call'>")
    fname = __file__
    if fname.endswith(".pyc"):
        fname = fname[:-1]
    # case-insensitive comparison needed on some filesystems
    # e.g. Windows:
    nt.assert_equal(i['file'].lower(), fname.lower())
    nt.assert_equal(i['definition'], 'Call(self, *a, **kw)\n')
    nt.assert_equal(i['docstring'], Call.__doc__)
    nt.assert_equal(i['source'], None)
    nt.assert_true(i['isclass'])
    nt.assert_equal(i['init_definition'], "Call(self, x, y=1)\n")
    nt.assert_equal(i['init_docstring'], Call.__init__.__doc__)
    
    i = inspector.info(Call, detail_level=1)
    nt.assert_not_equal(i['source'], None)
    nt.assert_equal(i['docstring'], None)
    
    c = Call(1)
    c.__doc__ = "Modified instance docstring"
    i = inspector.info(c)
    nt.assert_equal(i['type_name'], 'Call')
    nt.assert_equal(i['docstring'], "Modified instance docstring")
    nt.assert_equal(i['class_docstring'], Call.__doc__)
    nt.assert_equal(i['init_docstring'], Call.__init__.__doc__)
    nt.assert_equal(i['call_docstring'], c.__call__.__doc__)
    
    # Test old-style classes, which for example may not have an __init__ method.
    i = inspector.info(OldStyle)
    nt.assert_equal(i['type_name'], 'type')
    
    i = inspector.info(OldStyle())
    nt.assert_equal(i['type_name'], 'OldStyle')
    nt.assert_equal(i['docstring'], OldStyle.__doc__)
Digest a chunk -- extract working file name and revisions
dataset/ETHPy150Open ipython/ipython-py3k/IPython/core/tests/test_oinspect.py/test_info--crossover with--dataset/ETHPy150Open Southpaw-TACTIC/TACTIC/src/context/client/tactic-api-python-4.0.api04/Tools/Scripts/logmerge.py/digest_chunk