From 9a5537d3c160abf3a7431aeb457f2ef495f83083 Mon Sep 17 00:00:00 2001 From: David Halter Date: Thu, 30 Aug 2012 15:25:51 +0200 Subject: [PATCH] descriptor tests for the used methods --- test/completion/classes.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/test/completion/classes.py b/test/completion/classes.py index 4b989bb8..c3b34cf7 100644 --- a/test/completion/classes.py +++ b/test/completion/classes.py @@ -255,13 +255,24 @@ class RevealAccess(object): print('Updating', self.name) self.val = val + def just_a_method(self): + pass + class C(object): x = RevealAccess(10, 'var "x"') #? RevealAccess() x - #? ['__get__'] - x.__get__ + #? ['just_a_method'] + x.just_a_method y = 5.0 + def __init__(self): + #? int() + self.x + + #? [] + self.just_a_method + #? [] + C.just_a_method m = C() #? int() @@ -271,6 +282,11 @@ m.y #? int() C.x +#? [] +m.just_a_method +#? [] +C.just_a_method + # ----------------- # properties # -----------------