createDirectories(moduleDir);
File modFile = createFile(moduleDir[0], methodWithWindowFile);
writeIntoFile(methodWithWindowDefnWithComment, modFile);
ModuleList moduleList = new ModuleList(createPythonInterpreter(), moduleDir);
Module root = moduleList.getRoot();
Assert.assertTrue("Module structure did not match directory structure.", verifyModuleStructure(root, testDirectory));
List<Module> moduleForModuleDirs = root.getChildren();
Module modForFirstDir = moduleForModuleDirs.get(0);
List<Module> modForFilesAndDirsInModDir = modForFirstDir.getChildren();
Module modForSingleMethodFile = modForFilesAndDirsInModDir.get(0);
Assert.assertTrue(modForSingleMethodFile.isFile());
List<Function> functionsInFile = modForSingleMethodFile.getFunctions();
Assert.assertEquals(1, functionsInFile.size());
Function function = functionsInFile.get(0);
Assert.assertEquals(function.getName(), "methodWithWindow");