Back to index

python-biopython  1.60
Classes | Functions | Variables
Bio.AlignIO.StockholmIO Namespace Reference

Classes

class  StockholmWriter
class  StockholmIterator

Functions

def _test

Variables

string __docformat__ = "epytext en"

Function Documentation

def Bio.AlignIO.StockholmIO._test ( ) [private]
Run the Bio.SeqIO module's doctests.

This will try and locate the unit tests directory, and run the doctests
from there in order that the relative paths used in the examples work.

Definition at line 535 of file StockholmIO.py.

00535 
00536 def _test():
00537     """Run the Bio.SeqIO module's doctests.
00538 
00539     This will try and locate the unit tests directory, and run the doctests
00540     from there in order that the relative paths used in the examples work.
00541     """
00542     import doctest
00543     import os
00544     if os.path.isdir(os.path.join("..","..","Tests")):
00545         print "Runing doctests..."
00546         cur_dir = os.path.abspath(os.curdir)
00547         os.chdir(os.path.join("..","..","Tests"))
00548         assert os.path.isfile("Stockholm/simple.sth")
00549         doctest.testmod()
00550         os.chdir(cur_dir)
00551         del cur_dir
00552         print "Done"
        

Variable Documentation

Definition at line 132 of file StockholmIO.py.