Changeset 4907 for waeup/trunk/src


Ignore:
Timestamp:
27 Jan 2010, 12:31:07 (15 years ago)
Author:
uli
Message:

Update tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/trunk/src/waeup/datacenter.txt

    r4897 r4907  
    153153    []
    154154
    155     >>> shutil.rmtree(tmp_dir)
     155The created dir will be removed for us by the datacenter. This way we
     156can assured, that less temporary dirs are left hanging around:
     157
     158    >>> os.path.exists(tmp_dir)
     159    False
    156160
    157161The root dir is empty, while the original file and the file containing
     
    173177    >>> sorted(os.listdir(unfin_dir))
    174178    ['mysource.csv']
    175 
    176     >>> shutil.rmtree(tmp_dir)
    177179
    178180While the original source was moved to the 'unfinished' dir, the
     
    197199    []
    198200
    199     >>> shutil.rmtree(tmp_dir)
    200 
    201201The result is the same as in the first case shown above.
    202202
     
    211211    >>> mydatacenter.distProcessedFiles(False, src, finished_src,
    212212    ...                                 pending_src)
    213     >>> shutil.rmtree(tmp_dir)
    214213
    215214We try to process the pending file, which fails again:
     
    219218    >>> mydatacenter.distProcessedFiles(False, src, finished_src,
    220219    ...                                 pending_src)
    221     >>> shutil.rmtree(tmp_dir)
    222220
    223221We try to process the new pending file:
     
    237235    ['mysource.csv']
    238236
    239     >>> shutil.rmtree(tmp_dir)
    240 
    241237Finally, we process the pending file and everything works:
    242238
     
    260256Clean up:
    261257
    262     >>> shutil.rmtree(tmp_dir)
    263258    >>> shutil.rmtree(verynewpath)
    264259
Note: See TracChangeset for help on using the changeset viewer.