def METHOD_NAME(self, argcomplete_on):
    app = MainApp()
    assert set(self.run_completer(app, "app ")) >= {"subapp1", "subapp2"}
    assert set(self.run_completer(app, "app sub")) == {"subapp1", "subapp2"}
    assert set(self.run_completer(app, "app subapp1")) == {"subapp1"}