public void testTemplateProposalsInGlobal() {
MockAutocompleterEnvironment helper = new MockAutocompleterEnvironment();
helper.setup(new PathUtil("foo.py"), "con", 0, 3, true);
AutocompleteProposals autocompletions =
helper.autocompleter.pyAutocompleter.findAutocompletions(
helper.editor.getSelection(), CTRL_SPACE);
AutocompleteProposals.ProposalWithContext proposal = autocompletions.select(0);
assertEquals("proposal name", "continue", proposal.getItem().getName());
helper.autocompleter.reallyFinishAutocompletion(proposal);
String text = helper.editor.getDocument().getFirstLine().getText();
assertEquals("resulting text", "continue\n", text);