void () { runPythonTest(new PyConsoleTask() { @Override public void testing() throws Exception { exec("x = [1, 2, 3]"); exec("print(x)"); waitForOutput("[1, 2, 3]"); List<String> values = getCompoundValueChildren(getValue("x")); Collections.sort(values); assertContainsElements(values, "1", "2", "3", "3"); } }); }