Mercurial > repos > pieterlukasse > prims_metabolomics
comparison test/test_library_lookup.py @ 43:eb0e25d06060
updated dependency
author | pieter.lukasse@wur.nl |
---|---|
date | Fri, 07 Nov 2014 15:55:06 +0100 |
parents | 60b53f2aa48a |
children |
comparison
equal
deleted
inserted
replaced
42:664ccd5f7cf8 | 43:eb0e25d06060 |
---|---|
25 def test_create_lookup_table(self): | 25 def test_create_lookup_table(self): |
26 ''' | 26 ''' |
27 Tests the 'create_lookup_table' function | 27 Tests the 'create_lookup_table' function |
28 ''' | 28 ''' |
29 column_type = 'Capillary' | 29 column_type = 'Capillary' |
30 polarity = 'Semi-standard non-polar' | 30 polarity = 'Semi-standard non-polar6' |
31 lookup_dict = library_lookup.create_lookup_table(self.ri_database, column_type, polarity) | 31 lookup_dict = library_lookup.create_lookup_table(self.ri_database, column_type, polarity) |
32 self.assertFalse(False in [res[4] == 'Capillary' for res in lookup_dict['4177166']]) | 32 self.assertFalse(False in [res[4] == 'Capillary' for res in lookup_dict['4177166']]) |
33 self.assertEqual(['C51276336', '2,6-Dimethyl-octa-1,7-dien-3,6-diol', 'C10H18O2', | 33 self.assertEqual(['C51276336', '2,6-Dimethyl-octa-1,7-dien-3,6-diol', 'C10H18O2', |
34 '1277', 'Capillary', 'Semi-standard non-polar', 'DB-5MS', '1', | 34 '1277', 'Capillary', 'Semi-standard non-polar', 'DB-5MS', '1', |
35 'C51276336_DB-5MS', '', '', ''], lookup_dict['51276336'][1]) | 35 'C51276336_DB-5MS', '', '', ''], lookup_dict['51276336'][1]) |