Package org.python.pydev.core

Examples of org.python.pydev.core.ILocalScope


    public void testFindAssertInLocalScope2() throws Exception {
        String s = "def m1(a):\n" +
                "    assert isinstance(a, (list, tuple))\n" +
                "    ";

        ILocalScope localScope = findLocalScope(s, 2, 1);
        List<String> found = localScope.getPossibleClassesForActivationToken("a");
        assertEquals(2, found.size());
        assertEquals("list", found.get(0));
        assertEquals("tuple", found.get(1));
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.core.ILocalScope

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.