mailr5684 - /1.3/test_suite/unit_tests/_generic_fns/test_selection.py


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

Header


Content

Posted by edward on April 14, 2008 - 16:17:
Author: bugman
Date: Mon Apr 14 15:38:45 2008
New Revision: 5684

URL: http://svn.gna.org/viewcvs/relax?rev=5684&view=rev
Log:
Wrote a unit test for testing the generic_fns.selection.tokenise() function 
on the string '@N*'.


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=5684&r1=5683&r2=5684&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 Mon Apr 14 
15:38:45 2008
@@ -1058,6 +1058,18 @@
         self.assertEqual(spin_token, 'N,CA')
 
 
+    def test_tokenise8(self):
+        """Test the generic_fns.selection.tokenise() function on the string 
'@N*'."""
+
+        # Tokenise.
+        mol_token, res_token, spin_token = selection.tokenise('@N*')
+
+        # Check the tokens.
+        self.assertEqual(mol_token, None)
+        self.assertEqual(res_token, None)
+        self.assertEqual(spin_token, 'N*')
+
+
     def test_tokenise_dup_atom_id_fail1(self):
         """Test failure of the generic_fns.selection.tokenise() function on 
the string '@N@1'.
 




Related Messages


Powered by MHonArc, Updated Mon Apr 14 16:40:15 2008