def METHOD_NAME(self):
    out, err = expect(
        "myapp --print-completion-script zsh",
        program=Program(binary_names=["mya", "myapp"]),
        invoke=False,
    )
    # Combines some sentinels from vanilla test, with checks that it's
    # really replacing 'invoke' with desired binary names
    assert "_complete_mya() {" in out
    assert "invoke" not in out
    assert " mya myapp" in out