Changeset 6454


Ignore:
Timestamp:
22 Jun 2011, 17:32:37 (14 years ago)
Author:
Henrik Bettermann
Message:

Fix test: Not the original batch file but the archived batch file must be reimported.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser.txt

    r6452 r6454  
    203203    >>> browser.getControl('Cancel').click()
    204204
    205 We copy the ``BLA-1`` batch logfile over to the ``imports`` directory:
     205We copy the ``BLA-1`` archive batch file over to the ``imports`` directory:
    206206
    207207    >>> ac_storage = os.path.join(uploadpath, 'accesscodes')
    208208    >>> logfile2 = os.path.join(ac_storage,
    209     ...                         sorted(os.listdir(ac_storage))[-3])
     209    ...                         sorted(os.listdir(ac_storage))[-2])
    210210    >>> filename = os.path.basename(logfile2)
    211211    >>> filename
    212     'BLA-1-...-zope.mgr.csv'
     212    'BLA-1_archive...-zope.mgr.csv'
    213213
    214214    >>> import shutil
     
    241241    >>> print browser.contents
    242242    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    243     ...Successfully reimported: BLA-1-...-zope.mgr.csv...
     243    ...Successfully reimported: BLA-1_archive...-zope.mgr.csv...
    244244    ...
    245245
     
    252252    >>> print browser.contents
    253253    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    254     ...This batch already exists: BLA-1-...-zope.mgr.csv...
     254    ...This batch already exists: BLA-1_archive...-zope.mgr.csv...
    255255    ...
    256256
Note: See TracChangeset for help on using the changeset viewer.