'Runs a series of commands to verify if the file was successfully uploaded.
:param file_content: The bytestream that should be in the remote_filename
:param remote_filename: The remote file where the uploaded content should be in
:return: True if the file was successfully uploaded.'

def verify_upload(self, file_content, remote_filename):

    if ('/etc/passwd' in self._exec_method('md5sum    /etc/passwd')):
        md5sum_res = self._exec_method(('md5sum    ' + remote_filename))
        hash_ = md5sum_res.split('    ')[0]
        m = hashlib.md5()
        m.update(file_content)
        return (hash_ == m.hexdigest())
    return True
