def METHOD_NAME(self):
    expect(
        "--print-completion-script",
        err="needed value and was not given one",
        test=_assert_contains,
    )
    expect(
        "--print-completion-script bla",
        # NOTE: this needs updating when the real world changes, just like
        # eg our --help output tests. That's OK & better than just
        # reimplementing the code under test here.
        err='Completion for shell "bla" not supported (options are: bash, fish, zsh).',  # noqa
        test=_assert_contains,
    )