void () { runPythonTest(new PyConsoleTask("/debug") { @Override public void testing() throws Exception { exec("a = \"aaa\""); exec("a"); waitForOutput("aaa"); List<PydevCompletionVariant> completions = getCompletions("a."); assertFalse("Completion variants list is empty", completions.isEmpty()); PydevCompletionVariant compVariant = findCompletionVariantByName(completions, "center"); assertNotNull("Completion variant `center` is missing", compVariant); assertEquals(2, compVariant.getType()); assertTrue("Missing completion argument `width` in `str.center()`", compVariant.getArgs().contains("width")); assertFalse("Documentation is empty for `str.center()`", compVariant.getDescription().isEmpty()); } }); }