mailr3505 - /1.3/test_suite/unit_tests/generic_fns/test_spin.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on November 11, 2007 - 21:55:
Author: bugman
Date: Sun Nov 11 21:55:15 2007
New Revision: 3505

URL: http://svn.gna.org/viewcvs/relax?rev=3505&view=rev
Log:
Added a unit test for the generic_fns.spin.display() function.


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=3505&r1=3504&r2=3505&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 21:55:15 
2007
@@ -354,3 +354,20 @@
         
self.assertEqual(relax_data_store['orig'].mol[0].res[0].spin[1].name, 'C24')
         self.assertEqual(relax_data_store['orig'].mol[0].res[0].spin[2].num, 
9)
         
self.assertEqual(relax_data_store['orig'].mol[0].res[0].spin[2].name, 'C26')
+
+
+    def test_display(self):
+        """Test the display of spin information.
+
+        The function used is generic_fns.spin.display().
+        """
+
+        # Set up some data.
+        self.setup_data()
+
+        # The following should all work without error.
+        spin.display()
+        spin.display(':1')
+        spin.display('#Old mol:1')
+        spin.display('#New mol:5')
+        spin.display('#New mol:6@3239')




Related Messages


Powered by MHonArc, Updated Sun Nov 11 22:20:14 2007