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
            """
            from invenio.bibrank_selfcites_indexer import compute_self_citations

            tags = get_author_tags_mock()
            self_citations = compute_self_citations(1, tags, get_record_coauthors_mock)
            self.assertEqual(self_citations, set([3]))
        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
            """
            from invenio.bibrank_selfcites_indexer import compute_self_citations
            tags = get_author_tags_mock()
            total_citations = compute_self_citations(1, tags, get_record_coauthors_mock)
            self.assertEqual(total_citations, set([1, 2, 3]))
        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
            """
            from invenio.bibrank_selfcites_indexer import compute_self_citations
            tags = get_author_tags_mock()
            total_citations = compute_self_citations(
                1, tags, get_record_coauthors_mock)
            self.assertEqual(total_citations, set([1, 2, 3]))
        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
            """
            from invenio.bibrank_selfcites_indexer import compute_self_citations

            tags = get_author_tags_mock()
            self_citations = compute_self_citations(1, tags,
                                                    get_record_coauthors_mock)
            self.assertEqual(self_citations, set([3]))