def upload_single_doc(self, path, title=None, folder_entry=None,
                          file_ext=None, **kwargs):
        filename = os.path.basename(path)

        try:
            convert = kwargs['convert']
        except KeyError:
            convert = True

        if not file_ext:
            file_ext = googlecl.get_extension_from_path(filename)
            file_title = filename.split('.')[0]
        else:
            file_title = filename

        content_type = self._determine_content_type(file_ext)
        if not content_type:
            LOG.debug('Could not find content type using gdata, trying mimetypes')
            import mimetypes
            content_type = mimetypes.guess_type(path)[0]
            if not content_type:
                if convert:
                    content_type = 'text/plain'
                else:
                    content_type = 'application/octet-stream'
                entry_title = title or filename
            else:
                entry_title = title or file_title
        else:
            entry_title = title or file_title

        LOG.debug('Uploading with content type %s', content_type)
        LOG.info('Loading %s', path)

        if folder_entry:
            post_uri = folder_entry.content.src
        else:
            post_uri = self.DOCLIST_FEED_URI
        if not convert:
            post_uri += '?convert=false'

        try:
            new_entry = self._transmit_doc(path, entry_title, post_uri, content_type,
                                           file_ext)
        except self.request_error, err:
            LOG.error('Failed to upload %s: %s', path, err)
            if (str(err).find('ServiceForbiddenException') != -1 or
                    str(err).find('Unsupported Media Type') != -1):
                # Attempt to catch older gdata users and warn them when they try to upload
                # unsupported file types
                print "\n\nYour version of python-gdata may not support this action. "
                print "Please see the wiki page for more details: "
                print "http://code.google.com/p/googlecl/wiki/UploadingGoogleDocs\n\n"
                if convert:
                    LOG.info('You may have to specify a format with --format. Try ' +
                             '--format=txt')
            return None
        else:
            LOG.info('Upload success! Direct link: %s',
                     new_entry.GetAlternateLink().href)
        return new_entry
Net verification without vlans
dataset/ETHPy150Open vinitkumar/googlecl/src/googlecl/docs/base.py/DocsBaseCL.upload_single_doc--crossover with--dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_rpc_consumer.py/TestVerifyNetworks.test_verify_networks_resp_without_vlans_only