test for 'attributes assigned nearby' logic in completion

This commit is contained in:
Dmitry Jemerov
2011-12-15 18:28:53 +01:00
parent 8b6d7b5ef1
commit 1224088a46
3 changed files with 18 additions and 0 deletions
@@ -0,0 +1,7 @@
class Foo:
pass
def bar():
x = Foo()
x.shazam = 1
print x.shazam
@@ -0,0 +1,7 @@
class Foo:
pass
def bar():
x = Foo()
x.shazam = 1
print x.sh<caret>
@@ -483,4 +483,8 @@ public class PythonCompletionTest extends PyTestCase {
public void testImportKeyword() {
doTest();
}
public void testAssignedNearby() {
doTest();
}
}