@pytest.mark.parametrize(('src_pkg_path', 'tgt_pkg_path', 'err_frag'), [
        ('foobar', MINI_ZIP_PKG_PATH, 'SRC_PKG'),
        (MINI_ZIP_PKG_PATH, 'foobar', 'TGT_PKG'),
    ])
    def it_should_trigger_parser_error_if_pkg_path_does_not_exist(
            self, src_pkg_path, tgt_pkg_path, err_frag, args_, parser_):
        # fixture ----------------------
        args_.src_pkg_path = src_pkg_path
        args_.tgt_pkg_path = tgt_pkg_path
        substitute_command = SubstituteCommand(parser_)
        # exercise ---------------------
        substitute_command.validate(args_)
        # verify -----------------------
        parser_.error.assert_called_once_with(ANY)
        assert parser_.error.call_args[0][0] in err_frag
dataset/ETHPy150Open python-openxml/opc-diag/tests/test_cli.py/DescribeSubstituteCommand.it_should_trigger_parser_error_if_pkg_path_does_not_exist/swapped operands of `in`