Back to index

python-biopython  1.60
Classes | Functions | Variables
test_SeqIO_index Namespace Reference

Classes

class  OldIndexTest
class  IndexDictTests

Functions

def add_prefix
def gzip_open
def funct

Variables

 sqlite3 = None
 BytesIO = StringIO
list tests
list tasks = [(filename, None)]
tuple runner = unittest.TextTestRunner(verbosity = 2)

Function Documentation

Dummy key_function for testing index code.

Definition at line 35 of file test_SeqIO_index.py.

00035 
00036 def add_prefix(key):
00037     """Dummy key_function for testing index code."""
00038     return "id_" + key

Here is the caller graph for this function:

def test_SeqIO_index.funct (   fn,
  fmt,
  alpha,
  c 
)

Definition at line 411 of file test_SeqIO_index.py.

00411 
00412         def funct(fn,fmt,alpha,c):
00413             f = lambda x : x.simple_check(fn, fmt, alpha, c)
00414             f.__doc__ = "Index %s file %s defaults" % (fmt, fn)
            return f
def test_SeqIO_index.gzip_open (   filename,
  format 
)

Definition at line 39 of file test_SeqIO_index.py.

00039 
00040 def gzip_open(filename, format):
00041     #At time of writing, under Python 3.2.2 seems gzip.open(filename, mode)
00042     #insists on giving byte strings (i.e. binary mode)
00043     #See http://bugs.python.org/issue13989
00044     if sys.version_info[0] < 3 or format in SeqIO._BinaryFormats:
00045         return gzip.open(filename)
00046     handle = gzip.open(filename)
00047     data = handle.read() #bytes!
00048     handle.close()
00049     return StringIO(_bytes_to_string(data))
00050 

Here is the caller graph for this function:


Variable Documentation

Definition at line 24 of file test_SeqIO_index.py.

tuple test_SeqIO_index.runner = unittest.TextTestRunner(verbosity = 2)

Definition at line 439 of file test_SeqIO_index.py.

Definition at line 13 of file test_SeqIO_index.py.

list test_SeqIO_index.tasks = [(filename, None)]

Definition at line 406 of file test_SeqIO_index.py.

Definition at line 352 of file test_SeqIO_index.py.