From 910e7b94519f64d34d522c8a8cb45608945b9425 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Mon, 25 Feb 2019 17:50:21 +0100 Subject: [PATCH] testing get_pubmed_info closing #51 --- ippisite/ippidb/tests.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ippisite/ippidb/tests.py b/ippisite/ippidb/tests.py index 6deaf8aa..61257a12 100644 --- a/ippisite/ippidb/tests.py +++ b/ippisite/ippidb/tests.py @@ -370,6 +370,16 @@ class TestGetGooglePatentInfo(TestCase): self.assertRaises(ws.PatentNotFound, ws.get_google_patent_info, 'US8856504US8856504US885US8856504US8856504') +class TestGetPubMEDIdInfo(TestCase): + def test_create_protein(self): + target = {'title': 'Gene List significance at-a-glance with GeneValorization.', + 'journal_name': 'Bioinformatics (Oxford, England)', + 'biblio_year': '2011', + 'authors_list': 'Brancotte B, Biton A, Bernard-Pierrot I, Radvanyi F, Reyal F, Cohen-Boulakia S'} + resp = ws.get_pubmed_info('21349868') + self.assertEqual(resp, target) + + class TestGetUniprotInfo(TestCase): """ Test retrieving information for a uniprot entry -- GitLab