Author: bugman
Date: Sat Nov 24 12:40:35 2007
New Revision: 3885

URL: http://svn.gna.org/viewcvs/relax?rev=3885&view=rev
Log:
Added a unit test, the counting of the number of spins should raise an error 
when no pipe exists.


Modified:
    1.3/test_suite/unit_tests/_generic_fns/test_selection.py

Modified: 1.3/test_suite/unit_tests/_generic_fns/test_selection.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_generic_fns/test_selection.py?rev=3885&r1=3884&r2=3885&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_generic_fns/test_selection.py (original)
+++ 1.3/test_suite/unit_tests/_generic_fns/test_selection.py Sat Nov 24 
12:40:35 2007
@@ -101,6 +101,19 @@
         self.assertEqual(selection.count_spins(), 0)
 
 
+    def test_count_spins_no_pipe(self):
+        """Test that the counting of the number of spins raises an error when 
no pipe exists.
+
+        The function tested is generic_fns.selection.count_spins().
+        """
+
+        # Remove all data.
+        relax_data_store.__reset__()
+
+        # Test for the error.
+        self.assertRaises(RelaxNoPipeError, selection.count_spins)
+
+
     def test_molecule_loop(self):
         """Test the proper operation of the molecule loop with molecule 
selection.
 


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

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

Reply via email to