Changeset 1841:e206d84f38af


Ignore:
Timestamp:
Jul 11, 2019, 10:07:09 PM (3 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Use `ScriptedSession` in `test_succeeding_keep_alive`

It seems I had forgotten to adapt this test to the new testing
approach.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_host.py

    r1821 r1841  
    9595    def test_succeeding_keep_alive(self):
    9696        """Assume the connection is still alive."""
    97         host = test_base.ftp_host_factory()
    98         host.keep_alive()
     97        script = [
     98          Call("__init__"),
     99          Call("pwd", result="/"),
     100          # `pwd` due to `keep_alive` call.
     101          Call("pwd", result="/"),
     102          Call("close")
     103        ]
     104        with test_base.ftp_host_factory(scripted_session.factory(script)) as host:
     105            host.keep_alive()
    99106
    100107    def test_failing_keep_alive(self):
Note: See TracChangeset for help on using the changeset viewer.