PythonNature nature = PythonNature.getPythonNature(project);
String moduleName = nature.resolveModule(file);
if (moduleName != null) {
IModule mod = nature.getAstManager().getModule(moduleName, nature, true);
if (mod != null) {
ICompletionCache completionCache = new CompletionCache();
IDefinition[] definitions = mod.findDefinition(CompletionStateFactory
.getEmptyCompletionState(testPath, nature, completionCache), -1, -1, nature);
if (definitions != null && definitions.length > 0) {
List<ItemPointer> pointers = new ArrayList<ItemPointer>();