def test_efetch_nucleotide(self): # should return a list of SeqRecords res = etools.eFetch(ncbi_id='DQ373091', logger=self.logger) self.assertEqual(res[0].__class__.__name__, 'SeqRecord')
def test_efetch_taxonomy(self): # 9606 is humans res = etools.eFetch(ncbi_id='9606', db='taxonomy', logger=self.logger) self.assertEqual(res[0]['ScientificName'], 'H**o sapiens')