Author: bugman Date: Fri Nov 23 17:17:10 2007 New Revision: 3867 URL: http://svn.gna.org/viewcvs/relax?rev=3867&view=rev Log: Implemented a unit test to test the display of an amino acid sequence. Modified: 1.3/test_suite/unit_tests/sequence_testing_base.py Modified: 1.3/test_suite/unit_tests/sequence_testing_base.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/sequence_testing_base.py?rev=3867&r1=3866&r2=3867&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/sequence_testing_base.py (original) +++ 1.3/test_suite/unit_tests/sequence_testing_base.py Fri Nov 23 17:17:10 2007 @@ -63,6 +63,27 @@ remove(self.tmpfile) except OSError: pass + + + def test_display_protein_sequence(self): + """Test the display of an amino acid sequence. + + The functions tested are generic_fns.sequence.display() and prompt.sequence.display(). + """ + + # Alias the 'orig' relax data store. + cdp = relax_data_store['orig'] + + # Create a simple animo acid sequence. + cdp.mol[0].res[0].num = 1 + cdp.mol[0].res[0].name = 'GLY' + cdp.mol[0].res.add_item('PRO', 2) + cdp.mol[0].res.add_item('LEU', 3) + cdp.mol[0].res.add_item('GLY', 4) + cdp.mol[0].res.add_item('SER', 5) + + # Try displaying the residue sequence. + self.sequence_fns.display(res_num_col=0, res_name_col=1) def test_read_protein_noe_data(self):