Mercurial > repos > pieterlukasse > prims_metabolomics
comparison test/test_library_lookup.py @ 16:53e1eee93430
Last tested version
author | pieter.lukasse@wur.nl |
---|---|
date | Fri, 24 Jan 2014 10:38:31 +0100 |
parents | 9d5f4f5f764b |
children | 60b53f2aa48a |
comparison
equal
deleted
inserted
replaced
15:777c1c2a17a2 | 16:53e1eee93430 |
---|---|
145 | 145 |
146 def test_match_library_get_lib_files(self): | 146 def test_match_library_get_lib_files(self): |
147 ''' | 147 ''' |
148 Tests the match_library.py functionality | 148 Tests the match_library.py functionality |
149 ''' | 149 ''' |
150 riqc_libs_dir = resource_filename(__name__, "../repositories") | 150 riqc_libs_dir = resource_filename(__name__, "../repositories/PRIMS-metabolomics/RI_DB_libraries") |
151 get_library_files_output = match_library.get_directory_files(riqc_libs_dir) | 151 get_library_files_output = match_library.get_directory_files(riqc_libs_dir) |
152 self.assertEqual(4, len(get_library_files_output)) | 152 self.assertEqual(1, len(get_library_files_output)) |
153 self.assertEqual("Library_RI_DB_capillary_columns-noDuplicates", get_library_files_output[0][0]) | 153 self.assertEqual("Library_RI_DB_capillary_columns-noDuplicates", get_library_files_output[0][0]) |
154 #TODO change assert below to assert that the result is a file, so the test can run on other dirs as well: | 154 #TODO change assert below to assert that the result is a file, so the test can run on other dirs as well: |
155 #self.assertEqual("E:\\workspace\\PRIMS-metabolomics\\python-tools\\tools\\GCMS\\test\\data\\riqc_libs\\RI DB library (capillary columns) Dec.2012.txt", get_library_files_output[0][1]) | 155 #self.assertEqual("E:\\workspace\\PRIMS-metabolomics\\python-tools\\tools\\GCMS\\test\\data\\riqc_libs\\RI DB library (capillary columns) Dec.2012.txt", get_library_files_output[0][1]) |
156 #self.assertEqual("RI DB library (capillary columns) Jan.2013", get_library_files_output[1][0]) | 156 #self.assertEqual("RI DB library (capillary columns) Jan.2013", get_library_files_output[1][0]) |
157 try: | 157 try: |