Changeset 817:f1bd27bc249a
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r779
|
r817
|
|
| 37 | 37 | import unittest |
| 38 | 38 | |
| | 39 | |
| 39 | 40 | # assume the test subdirectories are or will be in the current directory |
| 40 | 41 | TEST_ROOT = os.getcwd() |
| … |
… |
|
| 60 | 61 | syncer.sync(source_dir, target_dir) |
| 61 | 62 | |
| | 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 | |
| 62 | 71 | |
| 63 | 72 | if __name__ == '__main__': |