fail();
} catch (RuntimeException e) {
assertEquals("getPyCode Forced Failure", e.getMessage());
}
IScriptConsoleCodeGenerator wrapped = new SafeScriptConsoleCodeGenerator(generator);
assertEquals(false, wrapped.hasPyCode());
assertEquals(null, wrapped.getPyCode());
StructuredSelection selection = new StructuredSelection(generator);
IScriptConsoleCodeGenerator wrappedSelection = new SafeScriptConsoleCodeGenerator(getGen(selection));
assertEquals(false, wrappedSelection.hasPyCode());
assertEquals(null, wrappedSelection.getPyCode());
}