Changeset 817:f1bd27bc249a

Show
Ignore:
Timestamp:
2009-10-30 19:19:29 (9 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
convert_revision:
svn:778c30c8-61e0-0310-89d4-fe2f97a467b2/trunk@887
Message:
Added a test for ticket #40, but couldn't reproduce the problem so far.
See the ticket for further remarks.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • _test_ftp_sync.py

    r779 r817  
    3737import unittest 
    3838 
     39 
    3940# assume the test subdirectories are or will be in the current directory 
    4041TEST_ROOT = os.getcwd() 
     
    6061        syncer.sync(source_dir, target_dir) 
    6162 
     63    def test_source_with_and_target_without_slash(self): 
     64        source = ftp_sync.LocalHost() 
     65        target = ftp_sync.LocalHost() 
     66        syncer = ftp_sync.Syncer(source, target) 
     67        source_dir = os.path.join(TEST_ROOT, "test_source/") 
     68        target_dir = os.path.join(TEST_ROOT, "test_target") 
     69        syncer.sync(source_dir, target_dir) 
     70 
    6271 
    6372if __name__ == '__main__':