Back to index

python-biopython  1.60
Classes | Functions | Variables
test_HotRand Namespace Reference

Classes

class  RandomSequenceTest

Functions

def are_items_in_range

Variables

tuple runner = unittest.TextTestRunner(verbosity = 2)

Function Documentation

def test_HotRand.are_items_in_range (   a,
  high,
  low 
)

Definition at line 17 of file test_HotRand.py.

00017 
00018 def are_items_in_range( a, high, low ):
00019     for j in range( 0, len( a ) ):
00020         if( a[ j ] > high ):
00021             print 'a[ %d ] is %d' % ( j , a[ j ] )
00022             return 0
00023         if( a[ j ] < low ):
00024             print 'a[ %d ] is %d' % ( j , a[ j ] )
00025             return 0
00026     return 1
00027 
00028 # --- the actual test classes

Here is the caller graph for this function:


Variable Documentation

tuple test_HotRand.runner = unittest.TextTestRunner(verbosity = 2)

Definition at line 55 of file test_HotRand.py.