Changeset 1750:2930f3422938


Ignore:
Timestamp:
Jan 1, 2019, 2:10:37 PM (2 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Improve formatting in `test_set_parser`
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_host.py

    r1749 r1750  
    234234    def test_set_parser(self):
    235235        """Test if the selected parser is used."""
     236        Call = scripted_session.Call
    236237        script = [
    237           scripted_session.Call(method_name="__init__", result=None),
    238           scripted_session.Call(method_name="pwd", result="/"),
    239           scripted_session.Call(method_name="cwd", result=None, expected_args=("/",)),
    240           scripted_session.Call(method_name="cwd", result=None, expected_args=("/",)),
    241           scripted_session.Call(
    242             method_name="dir",
    243             result="drwxr-xr-x   2 45854    200           512 May  4  2000 home"),
    244           scripted_session.Call(method_name="cwd", result=None, expected_args=("/",))
     238          Call(method_name="__init__", result=None),
     239          Call(method_name="pwd", result="/"),
     240          Call(method_name="cwd", result=None, expected_args=("/",)),
     241          Call(method_name="cwd", result=None, expected_args=("/",)),
     242          Call(method_name="dir",
     243               result="drwxr-xr-x   2 45854    200           512 May  4  2000 home"),
     244          Call(method_name="cwd", result=None, expected_args=("/",))
    245245        ]
    246246        host = test_base.ftp_host_factory(scripted_session.factory(script))
Note: See TracChangeset for help on using the changeset viewer.