Author: bugman Date: Sun Jun 29 15:06:04 2008 New Revision: 6589 URL: http://svn.gna.org/viewcvs/relax?rev=6589&view=rev Log: Modified the test_copy_protein_sequence() unit test to check that only sequence data is copied. 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=6589&r1=6588&r2=6589&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/sequence_testing_base.py (original) +++ 1.3/test_suite/unit_tests/sequence_testing_base.py Sun Jun 29 15:06:04 2008 @@ -87,6 +87,9 @@ cdp.mol[0].res.add_item('GLY', 4) cdp.mol[0].res.add_item('SER', 5) + # Add an object which should not be copied. + cdp.mol[0].res[2].spin[0].test = True + # Add a new data pipe to the data store. ds.add(pipe_name='new', pipe_type='mf') @@ -104,6 +107,9 @@ self.assertEqual(ds['new'].mol[0].res[3].name, 'GLY') self.assertEqual(ds['new'].mol[0].res[4].num, 5) self.assertEqual(ds['new'].mol[0].res[4].name, 'SER') + + # Test that the extra object was not copied. + self.assert_(not hasattr(ds['new'].mol[0].res[2].spin[0], 'test')) def test_display_protein_sequence(self):