def test_compute_self_citations(self): """Check self citations count matches in a typical case 1 has a self-citation see document graph up in this file """ tags = get_author_tags_mock() total_citations = search_engine_summarizer.compute_self_citations( 1, (3, 4), {}, tags) self.assertEqual(total_citations, 1)
def test_compute_self_citations_all_self_citations(self): """ Check self citations count matches when all citations are self citations see document graph up in this file """ tags = get_author_tags_mock() total_citations = search_engine_summarizer.compute_self_citations( 1, (1, 2, 3), {}, tags) self.assertEqual(total_citations, 0)