Back to index

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

Classes

class  MafftCommandline

Functions

def _test

Variables

string __docformat__ = "epytext en"

Function Documentation

Run the module's doctests (PRIVATE).

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 345 of file _Mafft.py.

00345 
00346 def _test():
00347     """Run the module's doctests (PRIVATE).
00348 
00349     This will try and locate the unit tests directory, and run the doctests
00350     from there in order that the relative paths used in the examples work.
00351     """
00352     #TODO - Remove os.path checks on input filenames?
00353     import doctest
00354     import os
00355     if os.path.isdir(os.path.join("..","Tests")):
00356         print "Runing doctests..."
00357         cur_dir = os.path.abspath(os.curdir)
00358         os.chdir(os.path.join("..","Tests"))
00359         doctest.testmod()
00360         os.chdir(cur_dir)
00361         del cur_dir
00362         print "Done"
00363     elif os.path.isdir(os.path.join("Tests")) :
00364         print "Runing doctests..."
00365         cur_dir = os.path.abspath(os.curdir)
00366         os.chdir(os.path.join("Tests"))
00367         doctest.testmod()
00368         os.chdir(cur_dir)
00369         del cur_dir
00370         print "Done"


Variable Documentation

Definition at line 8 of file _Mafft.py.