[Pydev-cvs] org.python.pydev/tests/org/python/pydev/editor/codecompletion PythonShellTest.java,1.1,1
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2004-09-13 19:48:04
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/codecompletion In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4324/tests/org/python/pydev/editor/codecompletion Modified Files: PythonShellTest.java Log Message: self. getting instance variables too. Index: PythonShellTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/codecompletion/PythonShellTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PythonShellTest.java 13 Sep 2004 17:11:49 -0000 1.1 --- PythonShellTest.java 13 Sep 2004 19:47:54 -0000 1.2 *************** *** 78,86 **** public void testOther(){ ! String str = "class C(object): \n"+ " \n"+ " def __init__(self): \n"+ - " \n"+ " print dir(self) \n"+ " \n"+ --- 78,106 ---- public void testOther(){ ! String str = getTestStr(); ! ! List list = shell.getClassCompletions("C",str); ! assertEquals(18, list.size()); ! ! list = shell.getTokenCompletions("C",str); ! assertEquals(17, list.size()); ! // for (Iterator iter = list.iterator(); iter.hasNext();) { ! // Object[] element = (Object[]) iter.next(); ! // System.out.println(element[0]); ! // System.out.println(element[1]); ! // } ! ! ! ! } ! ! /** ! * @return ! */ ! private String getTestStr() { ! String str = "class C(object): \n"+ " \n"+ " def __init__(self): \n"+ " print dir(self) \n"+ " \n"+ *************** *** 90,104 **** " \n"+ " def b(self): \n"+ ! " self.a \n"+ ! " \n"+ " pass \n"; ! ! List list = shell.getTokenCompletions("C",str); ! assertEquals(17, list.size()); ! // for (Iterator iter = list.iterator(); iter.hasNext();) { ! // Object[] element = (Object[]) iter.next(); ! // System.out.println(element[0]); ! // System.out.println(element[1]); ! // } ! } } --- 110,116 ---- " \n"+ " def b(self): \n"+ ! " self.c=1 \n"+ " pass \n"; ! return str; ! } } |