Changeset 1785:d9c22cc77a24


Ignore:
Timestamp:
Apr 20, 2019, 5:26:40 PM (2 days ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Tags:
tip
Message:
Remove `test_recursive_listing`

Remove `TestRecursiveListingForDotAsPath.test_recursive_listing`. The
method failed and after stepping through it with the debugger, it's
not clear why it worked to begin with. Since this is anyway an obscure
way to test the use of '.' vs. '' in the `session.dir` call I decided
to remove the test.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_host.py

    r1782 r1785  
    263263    http://ftputil.sschwarzer.net/trac/ticket/33 .
    264264    """
    265 
    266     def test_recursive_listing(self):
    267         """
    268         If a dot is passed to `FTPHost._dir` it should be passed to
    269         `session.dir` unmodified.
    270         """
    271         Call = scripted_session.Call
    272         script = [
    273           Call(method_name="__init__"),
    274           Call(method_name="pwd", result="/"),
    275           Call(method_name="cwd", result=None, args=("/",)),
    276           Call(method_name="cwd", result=None, args=(".",)),
    277           # Check that a dot is passed on to `session.dir`. With some servers,
    278           # this would result in a recursive listing.
    279           Call(method_name="dir", result="recursive listing", args=(".",)),
    280           Call(method_name="cwd", result=None, args=("/",)),
    281           Call(method_name="close", result=None)
    282         ]
    283         host = test_base.ftp_host_factory(scripted_session.factory(script))
    284         lines = host._dir(host.curdir)
    285         assert lines[0] == "recursive listing"
    286         host.close()
    287265
    288266    def test_plain_listing(self):
Note: See TracChangeset for help on using the changeset viewer.