Author: tlinnet Date: Wed Dec 3 18:38:25 2014 New Revision: 26933 URL: http://svn.gna.org/viewcvs/relax?rev=26933&view=rev Log: Added to the unit test of pipe_control.io, to test for id in cdp.io_ids. Task #7873 (https://gna.org/task/index.php?7873): Write wrapper function to nmrglue, to read .ft2 files and process them. Homepage: http://www.nmrglue.com/ Link to nmrglue discussion: https://groups.google.com/forum/#!forum/nmrglue-discuss The code is develop at Github: https://github.com/jjhelmus/nmrglue/ Documentation: http://nmrglue.readthedocs.org/en/latest/index.html Modified: branches/nmrglue/test_suite/unit_tests/_pipe_control/test_io.py Modified: branches/nmrglue/test_suite/unit_tests/_pipe_control/test_io.py URL: http://svn.gna.org/viewcvs/relax/branches/nmrglue/test_suite/unit_tests/_pipe_control/test_io.py?rev=26933&r1=26932&r2=26933&view=diff ============================================================================== --- branches/nmrglue/test_suite/unit_tests/_pipe_control/test_io.py (original) +++ branches/nmrglue/test_suite/unit_tests/_pipe_control/test_io.py Wed Dec 3 18:38:25 2014 @@ -71,6 +71,9 @@ ft2_glob_pat = '128_*_FT.ft2' io.file_list(glob=ft2_glob_pat, dir=ft2_folder_1, id=None) + # Test the list of stored id. + self.assertEqual(cdp.io_ids[-1], ft2_glob_pat) + self.assertEqual(cdp.io_basename[ft2_glob_pat], ['128_0_FT.ft2', '128_1_FT.ft2']) self.assertEqual(cdp.io_file_root[ft2_glob_pat], ['128_0_FT', '128_1_FT']) self.assertEqual(cdp.io_dir[ft2_glob_pat], ft2_folder_1)