'Compare md5 of file on network device to md5 of local file'

def compare_md5(self, base_cmd=u'verify    /md5'):

    if (self.direction == u'put'):
        remote_md5 = self.remote_md5(base_cmd=base_cmd)
        return (self.source_md5 == remote_md5)
    elif (self.direction == u'get'):
        local_md5 = self.file_md5(self.dest_file)
        return (self.source_md5 == local_md5)
