public void testMod1() {
Tuple<SimpleNode, Throwable> obj = PyParser.reparseDocument(new PyParser.ParserInfo(new Document(getDoc1()),
IPythonNature.GRAMMAR_PYTHON_VERSION_2_4));
SimpleNode n = obj.o1;
IModule module = AbstractModule.createModule(n);
IToken[] globalTokens = module.getGlobalTokens();
assertEquals(8, globalTokens.length); //C c D d a __file__ __name__
compareReps(globalTokens, "__file__ __name__ __dict__ C c D d a");
IToken[] wildImportedModules = module.getWildImportedModules();
assertEquals(1, wildImportedModules.length); //m4
compareReps(wildImportedModules, "m4");
IToken[] tokenImportedModules = module.getTokenImportedModules();
assertEquals(5, tokenImportedModules.length); //a1, xx, yy, aa
compareReps(tokenImportedModules, "a1 xx yy aa m3");
assertEquals("docstring for module", module.getDocString());
}