Back to index

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

List of all members.

Public Member Functions

def test_get_sprot_raw

Detailed Description

Tests for Bio.ExPASy module.

Definition at line 38 of file

Member Function Documentation


Definition at line 40 of file

00041     def test_get_sprot_raw(self):
00042         """Bio.ExPASy.get_sprot_raw("O23729")"""
00043         identifier = "O23729"
00044         try:
00045             #This is to catch an error page from our proxy:
00046             handle = UndoHandle(ExPASy.get_sprot_raw(identifier))
00047             if _as_string(handle.peekline()).startswith("<!DOCTYPE HTML"):
00048                 raise IOError
00049             record =, "swiss")
00050             handle.close()
00051         except IOError:
00052             raise MissingExternalDependencyError(
00053                   "internet (or maybe just ExPASy) not available")
00054         self.assertEqual(, identifier)
00055         self.assertEqual(len(record), 394)
00056         self.assertEqual(seguid(record.seq), "5Y08l+HJRDIlhLKzFEfkcKd1dkM")

Here is the call graph for this function:

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