def METHOD_NAME(self, argcomplete_on):
    app = MainApp()
    completions = set(self.run_completer(app, "app --"))
    assert completions > {'--Application.', '--MainApp.'}
    assert "--SubApp1." not in completions and "--SubApp2." not in completions