Changeset 1753:54a4611470c3


Ignore:
Timestamp:
Jan 2, 2019, 12:17:16 PM (3 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Simplify "__init__" call assertion

`ScriptedSession._next_call` already has an argument for checking if
the next call is an expected call. Therefore, just use the argument
instead of using an extra `assert` statement.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/scripted_session.py

    r1748 r1753  
    7878        self._index = 0
    7979        # Always expect an entry for the constructor.
    80         init = self._next_call()
    81         assert init.method_name == "__init__"
     80        init = self._next_call(expected_method_name="__init__")
    8281        init()
    8382
Note: See TracChangeset for help on using the changeset viewer.