def compare_checksums(self):
        """
        test to see if fetched file matches checksum from ebi
        :return: True or False

        """
        is_match = True
        reference_checksums = self.parse_checksum_file(
            self.files['checksum']['file'])
        for md5, file in reference_checksums.items():
            if os.path.isfile('/'.join((self.rawdir, file))):
                if self.get_file_md5(self.rawdir, file) != md5:
                    is_match = False
                    LOG.warning('%s was not downloaded completely', file)
                    return is_match

        return is_match
def compare_checksums ( self ) : is_match = True reference_checksums = self . parse_checksum_file ( self . files [ 'checksum' ] [ 'file' ] ) for md5 , file in reference_checksums . items ( ) : if os . path . isfile ( '/' . join ( ( self . rawdir , file ) ) ) : if self . get_file_md5 ( self . rawdir , file ) != md5 : is_match = False LOG . warning ( '%s was not downloaded completely' , file ) return is_match return is_match
test to see if fetched file matches checksum from ebi
        :return: True or False