Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
test_PopGen_FDist_nodepend.ConversionTest Class Reference

List of all members.

Public Member Functions

def setUp
def test_convert
def test_convert_big
def tearDown

Public Attributes

 handles
 names

Detailed Description

Definition at line 71 of file test_PopGen_FDist_nodepend.py.


Member Function Documentation

Definition at line 72 of file test_PopGen_FDist_nodepend.py.

00072 
00073     def setUp(self):
00074         files = ["c2line.gen", "haplo2.gen"]
00075         self.handles = []
00076         self.names = []
00077         for filename in files:
00078             self.names.append(os.path.join("PopGen", filename))
00079             self.handles.append(open(os.path.join("PopGen", filename)))

Definition at line 100 of file test_PopGen_FDist_nodepend.py.

00100 
00101     def tearDown(self):
00102         for handle in self.handles:
00103             handle.close()

Basic conversion test.

Definition at line 80 of file test_PopGen_FDist_nodepend.py.

00080 
00081     def test_convert(self):
00082         """Basic conversion test.
00083         """
00084         for i in range(len(self.names)):
00085             handle = self.handles[i]
00086             gp_rec = GenePop.read(handle)
00087             fd_rec = convert_genepop_to_fdist(gp_rec)
00088             assert(fd_rec.num_loci == 3)
00089             assert(fd_rec.num_pops == 3)

Here is the call graph for this function:

Big interface conversion test.

Definition at line 90 of file test_PopGen_FDist_nodepend.py.

00090 
00091     def test_convert_big(self):
00092         """Big interface conversion test.
00093         """
00094         for i in range(len(self.names)):
00095             gp_rec = FileParser.read(self.names[i])
00096             fd_rec = convert_genepop_to_fdist(gp_rec)
00097             assert(fd_rec.num_loci == 3)
00098             assert(fd_rec.num_pops == 3)
00099             gp_rec._handle.close() #TODO - Needs a proper fix

Here is the call graph for this function:


Member Data Documentation

Definition at line 74 of file test_PopGen_FDist_nodepend.py.

Definition at line 75 of file test_PopGen_FDist_nodepend.py.


The documentation for this class was generated from the following file: