Author: bugman
Date: Mon Feb 23 11:49:05 2015
New Revision: 27713
URL: http://svn.gna.org/viewcvs/relax?rev=27713&view=rev
Log:
Fix for the internal structural object unit test Test_object.test_add_atom_sort.
This test of the _lib._structure._internal.test_object unit test module now
requires the sort
argument set to True when calling the add_atom() method.
Modified:
trunk/test_suite/unit_tests/_lib/_structure/_internal/test_object.py
Modified: trunk/test_suite/unit_tests/_lib/_structure/_internal/test_object.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/test_suite/unit_tests/_lib/_structure/_internal/test_object.py?rev=27713&r1=27712&r2=27713&view=diff
==============================================================================
--- trunk/test_suite/unit_tests/_lib/_structure/_internal/test_object.py
(original)
+++ trunk/test_suite/unit_tests/_lib/_structure/_internal/test_object.py
Mon Feb 23 11:49:05 2015
@@ -34,18 +34,18 @@
struct = object.Internal()
# Create three molecules 'X', 'Y', and 'Z' with some connected atoms.
- struct.add_atom(atom_name='A', res_name='UNK', res_num=1,
mol_name='X', pos=[1., 0., -1.], element='S')
- struct.add_atom(atom_name='A', res_name='UNK', res_num=1,
mol_name='Y', pos=[0., 0., 0.], element='S')
- struct.add_atom(atom_name='A', res_name='UNK', res_num=1,
mol_name='Z', pos=[-1., 0., 1.], element='S')
- struct.add_atom(atom_name='A', res_name='UNK', res_num=3,
mol_name='X', pos=[1., 2., -1.], element='S')
- struct.add_atom(atom_name='A', res_name='UNK', res_num=3,
mol_name='Y', pos=[0., 2., 0.], element='S')
- struct.add_atom(atom_name='A', res_name='UNK', res_num=3,
mol_name='Z', pos=[-1., 2., 1.], element='S')
+ struct.add_atom(atom_name='A', res_name='UNK', res_num=1,
mol_name='X', pos=[1., 0., -1.], element='S', sort=True)
+ struct.add_atom(atom_name='A', res_name='UNK', res_num=1,
mol_name='Y', pos=[0., 0., 0.], element='S', sort=True)
+ struct.add_atom(atom_name='A', res_name='UNK', res_num=1,
mol_name='Z', pos=[-1., 0., 1.], element='S', sort=True)
+ struct.add_atom(atom_name='A', res_name='UNK', res_num=3,
mol_name='X', pos=[1., 2., -1.], element='S', sort=True)
+ struct.add_atom(atom_name='A', res_name='UNK', res_num=3,
mol_name='Y', pos=[0., 2., 0.], element='S', sort=True)
+ struct.add_atom(atom_name='A', res_name='UNK', res_num=3,
mol_name='Z', pos=[-1., 2., 1.], element='S', sort=True)
struct.connect_atom(mol_name='X', index1=0, index2=1)
struct.connect_atom(mol_name='Y', index1=0, index2=1)
struct.connect_atom(mol_name='Z', index1=0, index2=1)
- struct.add_atom(atom_name='A', res_name='UNK', res_num=2,
mol_name='X', pos=[1., 20., -1.], element='S')
- struct.add_atom(atom_name='A', res_name='UNK', res_num=2,
mol_name='Y', pos=[0., 20., 0.], element='S')
- struct.add_atom(atom_name='A', res_name='UNK', res_num=2,
mol_name='Z', pos=[-1., 20., 1.], element='S')
+ struct.add_atom(atom_name='A', res_name='UNK', res_num=2,
mol_name='X', pos=[1., 20., -1.], element='S', sort=True)
+ struct.add_atom(atom_name='A', res_name='UNK', res_num=2,
mol_name='Y', pos=[0., 20., 0.], element='S', sort=True)
+ struct.add_atom(atom_name='A', res_name='UNK', res_num=2,
mol_name='Z', pos=[-1., 20., 1.], element='S', sort=True)
# The sorted data.
data = [[
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits