Back to index

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

Classes

class  _RestrictedDict
class  SeqRecord

Functions

def _test

Variables

string __docformat__ = "epytext en"

Function Documentation

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

01126 
01127 def _test():
01128     """Run the Bio.SeqRecord module's doctests (PRIVATE).
01129 
01130     This will try and locate the unit tests directory, and run the doctests
01131     from there in order that the relative paths used in the examples work.
01132     """
01133     import doctest
01134     import os
01135     if os.path.isdir(os.path.join("..","Tests")):
01136         print "Runing doctests..."
01137         cur_dir = os.path.abspath(os.curdir)
01138         os.chdir(os.path.join("..","Tests"))
01139         doctest.testmod()
01140         os.chdir(cur_dir)
01141         del cur_dir
01142         print "Done"
01143     elif os.path.isdir(os.path.join("Tests")):
01144         print "Runing doctests..."
01145         cur_dir = os.path.abspath(os.curdir)
01146         os.chdir(os.path.join("Tests"))
01147         doctest.testmod()
01148         os.chdir(cur_dir)
01149         del cur_dir
01150         print "Done"


Variable Documentation

string Bio.SeqRecord.__docformat__ = "epytext en"

Definition at line 9 of file SeqRecord.py.