Module ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Import alias Import alias ImportFrom alias alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Str ClassDef bases NameLoad body Assign NameStore Str Assign NameStore TupleLoad Str NameLoad Assign NameStore TupleLoad Str NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr Assign NameStore Dict Str TupleLoad Num Str Print NameLoad For NameStore NameLoad body Assert CompareGtE SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num ListLoad NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num ListLoad NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list NameLoad decorator_list
N/A test.unit_tests.providers common test.unit_tests.providers.common ProviderTestCase totalimpact.providers.provider Provider ProviderContentMalformedError test.utils http N/A os N/A collections nose.tools assert_equals raises N/A datadir N/A N/A N/A os path join N/A N/A N/A N/A os path split __file__ N/A 0 ../../../extras/sample_provider_pages/wikipedia N/A SAMPLE_EXTRACT_METRICS_PAGE N/A N/A N/A os path join datadir metrics N/A SAMPLE_EXTRACT_ALIASES_PAGE N/A N/A N/A os path join datadir aliases N/A SAMPLE_EXTRACT_MEMBER_ITEMS_PAGE N/A N/A N/A os path join datadir members N/A SAMPLE_EXTRACT_BIBLIO_PAGE N/A N/A N/A os path join datadir biblio N/A TEST_DOI 10.1371/journal.pcbi.1000361 TestWikipedia N/A ProviderTestCase N/A N/A provider_name wikipedia N/A testitem_metrics N/A doi TEST_DOI N/A testitem_aliases N/A doi TEST_DOI N/A testitem_biblio None N/A testitem_members None setUp N/A N/A self N/A N/A N/A N/A N/A ProviderTestCase setUp self N/A test_is_relevant_alias N/A N/A self N/A N/A N/A N/A assert_equals N/A N/A N/A self provider is_relevant_alias N/A self testitem_aliases True N/A test_extract_metrics_success N/A N/A self N/A N/A N/A f N/A open SAMPLE_EXTRACT_METRICS_PAGE r N/A good_page N/A N/A f read N/A metrics_dict N/A N/A N/A self provider _extract_metrics good_page N/A N/A assert_equals N/A metrics_dict N/A wikipedia:mentions 1 N/A test_extract_metrics_empty N/A N/A self N/A N/A N/A empty_page <?xml version="1.0"?>
                <api>
                    <query>
                        <searchinfo totalhits="0" />
                        <search></search>
                    </query>
                </api>
                 N/A res N/A N/A N/A self provider _extract_metrics empty_page N/A N/A assert_equals res N/A N/A test_extract_metrics_invalid N/A N/A self N/A N/A N/A incorrect_doc this isn't the wikipedia search result page you are looking for N/A N/A N/A N/A self provider _extract_metrics incorrect_doc N/A N/A raises ProviderContentMalformedError test_metrics N/A N/A self N/A N/A N/A metrics_dict N/A N/A N/A self provider metrics N/A N/A self testitem_metrics N/A expected N/A wikipedia:mentions N/A 1 http://en.wikipedia.org/wiki/Special:Search?search="10.1371/journal.pcbi.1000361"&go=Go N/A metrics_dict N/A key expected N/A N/A N/A N/A N/A metrics_dict N/A key N/A 0 N/A N/A expected N/A key N/A 0 N/A key N/A metrics_dict N/A key N/A expected N/A key N/A N/A N/A N/A metrics_dict N/A key N/A 1 N/A N/A expected N/A key N/A 1 N/A key N/A metrics_dict N/A key N/A expected N/A key N/A http N/A