assertEquals(1, m.body.length);
assertEquals("Bar", ((NameTok) ((ClassDef) m.body[0]).name).id);
}
public void testDefinitionsParser4() {
Module m = (Module) FastDefinitionsParser.parse("class Bar(object):\n" +
" def m1(self):pass");
assertEquals(1, m.body.length);
ClassDef classDef = (ClassDef) m.body[0];
assertEquals("Bar", ((NameTok) classDef.name).id);