Author: bugman Date: Sun Nov 11 13:06:33 2007 New Revision: 3477 URL: http://svn.gna.org/viewcvs/relax?rev=3477&view=rev Log: Fixed up the data setup for the spin.copy() unit function tests. Modified: 1.3/test_suite/unit_tests/generic_fns/test_spin.py Modified: 1.3/test_suite/unit_tests/generic_fns/test_spin.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/generic_fns/test_spin.py?rev=3477&r1=3476&r2=3477&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/generic_fns/test_spin.py (original) +++ 1.3/test_suite/unit_tests/generic_fns/test_spin.py Sun Nov 11 13:06:33 2007 @@ -66,15 +66,16 @@ cdp.mol[0].name = 'Old mol' # Create the first residue and add some data to its spin container. - cdp.mol[0].res.add_item(1, 'Ala') + cdp.mol[0].res[0].num = 1 + cdp.mol[0].res[0].name = 'Ala' cdp.mol[0].res[0].spin[0].num = 111 cdp.mol[0].res[0].spin[0].name = 'C8' cdp.mol[0].res[0].spin[0].x = 1 # Create a second residue. cdp.mol[0].res.add_item(2, 'Arg') - cdp.mol[0].res[0].spin[0].num = 78 - cdp.mol[0].res[0].spin[0].name = 'NH' + cdp.mol[0].res[1].spin[0].num = 78 + cdp.mol[0].res[1].spin[0].name = 'NH' # Create a second molecule. cdp.mol.add_item('New mol')