Back to index

python-biopython  1.60
Public Member Functions | Private Member Functions
test_SeqIO_SeqXML.TestReadAndWrite Class Reference

List of all members.

Public Member Functions

def test_read_write_rna
def test_read_write_dna
def test_read_write_protein
def test_read_write_globalSpecies

Private Member Functions

def _write_parse_and_compare

Detailed Description

Definition at line 109 of file test_SeqIO_SeqXML.py.


Member Function Documentation

def test_SeqIO_SeqXML.TestReadAndWrite._write_parse_and_compare (   self,
  read1_records 
) [private]

Definition at line 132 of file test_SeqIO_SeqXML.py.

00132 
00133     def _write_parse_and_compare(self,read1_records):
00134         
00135         handle = StringIO()
00136         
00137         SeqIO.write(read1_records,handle,"seqxml")
00138         
00139         handle.seek(0)
00140         read2_records = list(SeqIO.parse(handle,"seqxml"))
00141         
00142         self.assertEquals(len(read1_records),len(read2_records))
00143         
00144         for record1,record2 in zip(read1_records,read2_records):
00145             assert_equal_records(self,record1,record2)
        

Here is the call graph for this function:

Here is the caller graph for this function:

Read and write DNA.

Definition at line 116 of file test_SeqIO_SeqXML.py.

00116 
00117     def test_read_write_dna(self):
00118         """Read and write DNA."""
00119         read1_records = list(SeqIO.parse(test_files["dna"][0],"seqxml"))
00120         self._write_parse_and_compare(read1_records)
    

Here is the call graph for this function:

Read and write global species.

Definition at line 126 of file test_SeqIO_SeqXML.py.

00126 
00127     def test_read_write_globalSpecies(self):
00128         """Read and write global species."""
00129         read1_records = list(SeqIO.parse(test_files["globalSpecies"][0],"seqxml"))
00130         self._write_parse_and_compare(read1_records)
00131         
    

Here is the call graph for this function:

Read and write protein.

Definition at line 121 of file test_SeqIO_SeqXML.py.

00121 
00122     def test_read_write_protein(self):
00123         """Read and write protein."""
00124         read1_records = list(SeqIO.parse(test_files["protein"][0],"seqxml"))
00125         self._write_parse_and_compare(read1_records)
        

Here is the call graph for this function:

Read and write RNA.

Definition at line 111 of file test_SeqIO_SeqXML.py.

00111 
00112     def test_read_write_rna(self):
00113         """Read and write RNA."""
00114         read1_records = list(SeqIO.parse(test_files["rna"][0],"seqxml"))
00115         self._write_parse_and_compare(read1_records)
    

Here is the call graph for this function:


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