void () { final PyFileImpl file = (PyFileImpl) getTestFile(); final List<PyFromImportStatement> fromImports = file.getFromImports(); assertEquals(1, fromImports.size()); final PyFromImportStatement fromImport = fromImports.get(0); final PyImportElement[] importElements = fromImport.getImportElements(); assertEquals(1, importElements.length); assertEquals("argv", importElements [0].getVisibleName()); assertFalse(fromImport.isStarImport()); assertEquals(0, fromImport.getRelativeLevel()); final QualifiedName qName = fromImport.getImportSourceQName(); assertSameElements(qName.getComponents(), "sys"); final List<PyImportElement> importTargets = file.getImportTargets(); assertEquals(1, importTargets.size()); final PyImportElement importElement = importTargets.get(0); final QualifiedName importQName = importElement.getImportedQName(); assertSameElements(importQName.getComponents(), "os", "path"); assertNotParsed(file); }