Author: bugman Date: Mon Apr 14 15:46:39 2008 New Revision: 5685 URL: http://svn.gna.org/viewcvs/relax?rev=5685&view=rev Log: Wrote a unit test for testing generic_fns.selection.parse_token() 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=5685&r1=5684&r2=5685&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:46:39 2008 @@ -462,6 +462,17 @@ self.assertEqual(list[0], 'G') + def test_parse_token_single_element_wildcard_name(self): + """Test the generic_fns.selection.parse_token() function on the string 'N*'.""" + + # Parse the token. + list = selection.parse_token('N*') + + # Check the list elements. + self.assertEqual(len(list), 1) + self.assertEqual(list[0], 'N*') + + def test_parse_token_single_element_range(self): """Test the generic_fns.selection.parse_token() function on the string '1-10'."""