Back to index

python-biopython  1.60
Namespaces | Classes | Functions | Variables
Bio.Align Namespace Reference

Namespaces

namespace  AlignInfo
namespace  Applications
namespace  Generic

Classes

class  MultipleSeqAlignment

Functions

def _test

Variables

string __docformat__ = "epytext en"

Function Documentation

def Bio.Align._test ( ) [private]
Run the Bio.Align 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 614 of file __init__.py.

00614 
00615 def _test():
00616     """Run the Bio.Align module's doctests.
00617 
00618     This will try and locate the unit tests directory, and run the doctests
00619     from there in order that the relative paths used in the examples work.
00620     """
00621     import doctest
00622     import os
00623     if os.path.isdir(os.path.join("..", "..", "Tests", "Clustalw")):
00624         print "Runing doctests..."
00625         cur_dir = os.path.abspath(os.curdir)
00626         os.chdir(os.path.join("..", "..", "Tests"))
00627         doctest.testmod()
00628         os.chdir(cur_dir)
00629         del cur_dir
00630         print "Done"
00631     elif os.path.isdir(os.path.join("Tests", "Clustalw")):
00632         print "Runing doctests..."
00633         cur_dir = os.path.abspath(os.curdir)
00634         os.chdir(os.path.join("Tests"))
00635         doctest.testmod()
00636         os.chdir(cur_dir)
00637         del cur_dir
00638         print "Done"


Variable Documentation

string Bio.Align.__docformat__ = "epytext en"

Definition at line 12 of file __init__.py.