<commit_before>'''
Created on Jul 29, 2015

@author: constantinm
Adapted to Drive
'''

from common_unit_test import UnitTestCase
from nxdrive.tests.common_unit_test import log
from nxdrive.tests.common_unit_test import FILE_CONTENT

import os
import shutil


class MultipleFilesTestCase(UnitTestCase):

    NUMBER_OF_LOCAL_FILES = 10
    SYNC_TIMEOUT = 100  # in seconds

    '''
        1. create folder 'Nuxeo Drive Test Workspace/a1' with 100 files in it
        2. create folder 'Nuxeo Drive Test Workspace/a2'
        2. create folder 'Nuxeo Drive Test Workspace/a3'
    '''
    def setUp(self):
        super(MultipleFilesTestCase, self).setUp()

        log.debug('*** enter MultipleFilesTestCase.setUp()')
        log.debug('*** engine1 starting')
        self.engine_1.start()
        self.wait_sync()
        log.debug('*** engine 1 synced')
        log.debug("full local root path %s", self.local_client_1.get_info("/"))

        # create  folder a1
        self.local_client_1.make_folder("/", ur'a1')<commit_msg>NXDRIVE-471: Increase sync timeout in test_multiple_files.py<commit_after>'''
Created on Jul 29, 2015

@author: constantinm
Adapted to Drive
'''

from common_unit_test import UnitTestCase
from nxdrive.tests.common_unit_test import log
from nxdrive.tests.common_unit_test import FILE_CONTENT

import os
import shutil


class MultipleFilesTestCase(UnitTestCase):

    NUMBER_OF_LOCAL_FILES = 10
    SYNC_TIMEOUT = 200  # in seconds

    '''
        1. create folder 'Nuxeo Drive Test Workspace/a1' with 100 files in it
        2. create folder 'Nuxeo Drive Test Workspace/a2'
        2. create folder 'Nuxeo Drive Test Workspace/a3'
    '''
    def setUp(self):
        super(MultipleFilesTestCase, self).setUp()

        log.debug('*** enter MultipleFilesTestCase.setUp()')
        log.debug('*** engine1 starting')
        self.engine_1.start()
        self.wait_sync()
        log.debug('*** engine 1 synced')
        log.debug("full local root path %s", self.local_client_1.get_info("/"))

        # create  folder a1
        self.local_client_1.make_folder("/", ur'a1')
{'fraction_non_alphanumeric': 0.1044349070100143, 'fraction_numerical': 0.027181688125894134, 'mean_word_length': 3.196, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4260474', 'n_tokens_mistral': 705, 'n_tokens_neox': 647, 'n_words': 180}