Пример #1
0
 def test_get_metric_value_lists(self):
     response = collection.get_metric_value_lists(API_ITEMS_JSON)
     print response
     assert_equals(response['plosalm:pmc_abstract'], [70, 37, 29, 0])
 def test_get_metric_value_lists(self):
     response = collection.get_metric_value_lists(API_ITEMS_JSON)
     print response
     assert_equals(response['plosalm:pmc_abstract'], [70, 37, 29, 0])
Пример #3
0
 def test_get_metric_value_lists(self):
     response = collection.get_metric_value_lists(API_ITEMS_JSON)
     print response
     expected = {'plosalm:pmc_abstract': [70, 37, 29, 0], 'dryad:package_views': [537, 0, 0, 0], 'plosalm:pmc_supp-data': [41, 6, 0, 0], 'plosalm:pmc_unique-ip': [580, 495, 251, 0], 'plosalm:pmc_pdf': [285, 149, 113, 0], 'facebook:shares': [0, 0, 0, 0], 'mendeley:country': [0, 0, 0, 0], 'mendeley:career_stage': [0, 0, 0, 0], 'mendeley:readers': [57, 52, 13, 0], 'dryad:total_downloads': [114, 0, 0, 0], 'mendeley:groups': [4, 4, 1, 0], 'scopus:citations': [0, 0, 0, 0], 'figshare:downloads': [0, 0, 0, 0], 'topsy:influential_tweets': [0, 0, 0, 0], 'topsy:tweets': [0, 0, 0, 0], 'github:forks': [0, 0, 0, 0], 'scienceseeker:blog_posts': [0, 0, 0, 0], 'pubmed:pmc_citations_reviews': [0, 0, 0, 0], 'pubmed:pmc_citations_editorials': [0, 0, 0, 0], 'pubmed:pmc_citations': [0, 0, 0, 0], 'plosalm:pubmed_central': [12, 9, 2, 0], 'plosalm:scopus': [19, 19, 11, 0], 'facebook:comments': [0, 0, 0, 0], 'plosalm:html_views': [11521, 3361, 2075, 0], 'delicious:bookmarks': [0, 0, 0, 0], 'citeulike:bookmarks': [0, 0, 0, 0], 'pubmed:f1000': [0, 0, 0, 0], 'plosalm:pmc_figure': [54, 39, 13, 0], 'facebook:likes': [0, 0, 0, 0], 'github:watchers': [0, 0, 0, 0], 'plosalm:crossref': [16, 13, 7, 0], 'figshare:shares': [0, 0, 0, 0], 'facebook:clicks': [0, 0, 0, 0], 'wikipedia:mentions': [1, 0, 0, 0], 'slideshare:downloads': [0, 0, 0, 0], 'plosalm:pdf_views': [1112, 1097, 484, 0], 'slideshare:favorites': [0, 0, 0, 0], 'plosalm:pmc_full-text': [624, 434, 232, 0], 'slideshare:views': [0, 0, 0, 0], 'mendeley:discipline': [0, 0, 0, 0], 'figshare:views': [0, 0, 0, 0], 'slideshare:comments': [0, 0, 0, 0]}
     assert_equals(response, expected)