def __get_mol_file(self, read_id, retrieved_id):
     '''COMMENT'''
     mol_read = _read_mol_file(read_id)
     this_chebi_entity = ChebiEntity(str(retrieved_id))
     textfile_retrieved = open(this_chebi_entity.get_mol_filename(), 'r')
     mol_retrieved = textfile_retrieved.read()
     textfile_retrieved.close()
     self.assertEquals(mol_read, mol_retrieved)
Beispiel #2
0
 def __get_mol_file(self, read_id, retrieved_id):
     '''COMMENT'''
     mol_read = _read_mol_file(read_id)
     this_chebi_entity = ChebiEntity(str(retrieved_id))
     textfile_retrieved = open(this_chebi_entity.get_mol_filename(), 'r')
     mol_retrieved = textfile_retrieved.read()
     textfile_retrieved.close()
     self.assertEquals(mol_read, mol_retrieved)
Beispiel #3
0
    def __get_mol_file(self, read_id, retrieved_id):
        '''COMMENT'''
        mol_read = _read_mol_file(read_id)
        this_chebi_entity = ChebiEntity(str(retrieved_id))

        with open(this_chebi_entity.get_mol_filename(), 'r') as txtfile:
            mol_retrieved = txtfile.read()
            self.assertEqual(mol_read, mol_retrieved)