String text = helper.editor.getDocument().getFirstLine().getText();
assertEquals("resulting text", "continue\n", text);
}
public void testOperatorKeywords() {
MockAutocompleterEnvironment helper = new MockAutocompleterEnvironment();
String text = "if a is not None:";
helper.setup(new PathUtil("foo.py"), text, 0, text.length(), true);
JsonArray<Token> tokens = helper.parser
.parseLineSync(helper.editor.getDocument().getFirstLine());
assertEquals("4-th token == 'is'", "is", tokens.get(4).getValue());
assertEquals("4-th token is keyword", TokenType.KEYWORD, tokens.get(4).getType());
assertEquals("6-th token == 'not'", "not", tokens.get(6).getValue());