Back to index

python-biopython  1.60
Public Member Functions
test_SeqIO_online.EntrezTests Class Reference

List of all members.

Public Member Functions

def simple

Detailed Description

Definition at line 57 of file

Member Function Documentation

def test_SeqIO_online.EntrezTests.simple (   self,

Definition at line 58 of file

00059     def simple(self, database, formats, entry, length, checksum):
00060         for f in formats:
00061             try:
00062                 handle = Entrez.efetch(db=database, id=entry, rettype=f, retmode="text")
00063                 record =, f)
00064                 handle.close()
00065             except IOError:
00066                 raise MissingExternalDependencyError(
00067                       "internet (or maybe just NCBI) not available")
00068             self.assertTrue((entry in or \
00069                          (entry in or \
00070                          ("gi" in record.annotations \
00071                           and record.annotations["gi"]==entry),
00072                          "%s got %s, %s" % (entry,,
00073             self.assertEqual(len(record), length)
00074             self.assertEqual(seguid(record.seq), checksum)

Here is the call graph for this function:

The documentation for this class was generated from the following file: