helper.parser.begin();
helper.parseScheduler.requests.get(0).run(20);
//# Comment
Line line = helper.editor.getDocument().getFirstLine();
PyCodeScope scope = line.getTag(PyIndexUpdater.TAG_SCOPE);
assertNull(scope);
//class Foo:
line = line.getNextLine();
scope = line.getTag(PyIndexUpdater.TAG_SCOPE);
assertNotNull(scope);
assertEquals(PyCodeScope.Type.CLASS, scope.getType());
assertEquals("Foo", PyCodeScope.buildPrefix(scope).join("#"));
PyCodeScope prevScope = scope;
// "Foo is very clever and open-minded"
line = line.getNextLine();
scope = line.getTag(PyIndexUpdater.TAG_SCOPE);
assertTrue(scope == prevScope);