Module ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str FunctionDef arguments args defaults body Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Yield TupleLoad NameLoad Call NameLoad Expr Yield TupleLoad NameLoad Call NameLoad decorator_list Import alias Import alias ImportFrom alias alias identifier alias alias ImportFrom alias ImportFrom alias alias Assign NameStore Call NameLoad Call NameLoad NameLoad Str Str Assign NameStore Call NameLoad Call NameLoad NameLoad Str Str Str FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assert CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore IfExp NameLoad ListLoad Str NameLoad ListLoad NameLoad Assign NameStore Call NameLoad BinOpAdd ListLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return TupleLoad NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list Assign NameStore Dict Str BinOpMod Str TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call NameLoad NameLoad Num Expr Call NameLoad Str NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Import alias handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad orelse Expr Call NameLoad Str NameLoad Expr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body For NameStore TupleLoad Dict Str Str Dict Str NameLoad body Expr Yield TupleLoad NameLoad NameLoad Dict Expr Yield TupleLoad NameLoad NameLoad Dict Str Str Expr Yield TupleLoad NameLoad NameLoad Dict Str Str decorator_list If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad
N/A duecredit.collector DueCreditCollector duecredit.stub InactiveDueCreditCollector duecredit.entries BibTeX Doi nose.tools assert_equal nose.tools assert_in nose SkipTest _test_api N/A N/A due N/A N/A N/A N/A N/A due add N/A BibTeX @article{XXX00, ...} N/A N/A N/A due add N/A Doi xxx.yyy/zzz.1 key XXX01 N/A N/A N/A due load /home/siiioul/deep/good_intentions.bib N/A N/A N/A due cite XXX00 description Answers to existential questions path module N/A N/A N/A due cite XXX01 description More answers to existential questions path module.submodule:class1.whoknowswhat2.func1 purpose_of_life N/A N/A N/A N/A N/A None N/A N/A N/A due dcite XXX00 description Provides an answer for meaningless existence Child N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A birth N/A N/A self gender N/A N/A N/A Rachel was born N/A N/A N/A due dcite XXX00 N/A N/A kid N/A Child N/A N/A N/A kid birth female N/A test_api N/A N/A N/A N/A N/A N/A N/A _test_api N/A DueCreditCollector N/A N/A N/A _test_api N/A InactiveDueCreditCollector N/A N/A os N/A sys os.path dirname join pathjoin pardir normpath mock patch subprocess Popen PIPE N/A badlxml_path N/A pathjoin N/A dirname __file__ envs nolxml N/A stubbed_script N/A pathjoin N/A dirname __file__ envs stubbed script.py run_python_command N/A N/A cmd script N/A None None N/A N/A Just a tiny helper which runs command and returns exit code, stdout, stderr N/A N/A N/A bool cmd N/A bool script N/A args N/A cmd N/A -c cmd N/A script N/A python N/A Popen N/A N/A N/A sys executable args stdout PIPE stderr PIPE N/A ret N/A N/A python wait N/A N/A ret N/A N/A N/A N/A N/A python stdout read decode N/A N/A N/A N/A N/A python stderr read decode N/A N/A mock_env_nolxml N/A PYTHONPATH N/A %s:%s N/A badlxml_path N/A N/A N/A os environ get PYTHONPATH test_noincorrect_import_if_no_lxml N/A N/A N/A N/A N/A N/A N/A patch dict N/A os environ mock_env_nolxml N/A N/A N/A ret out err N/A run_python_command import lxml N/A N/A assert_equal ret 1 N/A N/A assert_in ImportError err N/A N/A ret out err N/A run_python_command import duecredit N/A N/A assert_equal err N/A N/A assert_equal out N/A N/A assert_equal ret 0 N/A check_noincorrect_import_if_no_lxml_numpy N/A N/A kwargs env N/A N/A N/A N/A N/A numpy N/A N/A N/A ImportError N/A N/A N/A SkipTest We need to have numpy to test correct operation N/A mock_env_nolxml_ N/A N/A mock_env_nolxml copy N/A N/A N/A mock_env_nolxml_ update env N/A N/A N/A patch dict N/A os environ mock_env_nolxml_ N/A N/A N/A ret out err N/A run_python_command kwargs N/A N/A assert_equal err N/A N/A N/A N/A os environ get DUECREDIT_ENABLE False N/A N/A N/A assert_in For formatted output we need citeproc out N/A N/A assert_in done123 out N/A N/A N/A N/A N/A os environ get DUECREDIT_TEST_EARLY_IMPORT_ERROR N/A N/A N/A assert_in ImportError out N/A N/A assert_in DUECREDIT_TEST_EARLY_IMPORT_ERROR out N/A N/A assert_in done123 out N/A N/A N/A assert_equal done123
 out N/A N/A assert_equal ret 0 N/A test_noincorrect_import_if_no_lxml_numpy N/A N/A N/A N/A N/A kwargs N/A N/A cmd import duecredit; import numpy as np; print("done123") N/A script stubbed_script N/A N/A N/A N/A check_noincorrect_import_if_no_lxml_numpy kwargs N/A N/A N/A N/A check_noincorrect_import_if_no_lxml_numpy kwargs N/A DUECREDIT_ENABLE yes N/A N/A N/A check_noincorrect_import_if_no_lxml_numpy kwargs N/A DUECREDIT_TEST_EARLY_IMPORT_ERROR yes N/A N/A N/A __name__ __main__ N/A duecredit due N/A N/A _test_api due