Back to index

python-biopython  1.60
Classes | Functions
Bio.SeqFeature Namespace Reference

Classes

class  SeqFeature
class  Reference
class  FeatureLocation
class  AbstractPosition
class  ExactPosition
class  UncertainPosition
class  UnknownPosition
class  WithinPosition
class  BetweenPosition
class  BeforePosition
class  AfterPosition
class  OneOfPosition
class  PositionGap

Functions

def _test

Function Documentation

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

01343 
01344 def _test():
01345     """Run the Bio.SeqFeature module's doctests (PRIVATE).
01346 
01347     This will try and locate the unit tests directory, and run the doctests
01348     from there in order that the relative paths used in the examples work.
01349     """
01350     import doctest
01351     import os
01352     if os.path.isdir(os.path.join("..","Tests")):
01353         print "Runing doctests..."
01354         cur_dir = os.path.abspath(os.curdir)
01355         os.chdir(os.path.join("..","Tests"))
01356         doctest.testmod()
01357         os.chdir(cur_dir)
01358         del cur_dir
01359         print "Done"
01360     elif os.path.isdir(os.path.join("Tests")) :
01361         print "Runing doctests..."
01362         cur_dir = os.path.abspath(os.curdir)
01363         os.chdir(os.path.join("Tests"))
01364         doctest.testmod()
01365         os.chdir(cur_dir)
01366         del cur_dir
01367         print "Done"
01368