~sschwarzer/ftputil

b337f77e1927d041df76f27325caa28fb9cdd15b — Stefan Schwarzer 8 years ago 2444640
Added docstring with file system tree to `TestWalk`.

This way it's easier to understand whether the tests contain the
correct expected results.
1 files changed, 21 insertions(+), 0 deletions(-)

M test/test_real_ftp.py
M test/test_real_ftp.py => test/test_real_ftp.py +21 -0
@@ 305,6 305,27 @@ class TestRemoval(RealFTPTest):


class TestWalk(RealFTPTest):
    """
    Walk the directory tree

      walk_test
      ├── dir1
      │   ├── dir11
      │   └── dir12
      │       ├── dir123
      │       │   └── file1234
      │       ├── file121
      │       └── file122
      ├── dir2
      ├── dir3
      │   ├── dir31
      │   ├── dir32 -> ../dir1/dir12/dir123
      │   ├── file31
      │   └── file32
      └── file4

    and check if the results are the expected ones.
    """

    def _walk_test(self, expected_result, **walk_kwargs):
        """Walk the directory and test results."""