From b432090f58308f9a58b6f7ad9c35a5128d6d2e57 Mon Sep 17 00:00:00 2001 From: David Halter Date: Thu, 19 Jul 2012 17:18:55 +0200 Subject: [PATCH] new ordering tests for classes --- test/completion/ordering.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/test/completion/ordering.py b/test/completion/ordering.py index 3af1968d..4534d521 100644 --- a/test/completion/ordering.py +++ b/test/completion/ordering.py @@ -57,7 +57,7 @@ a b # ----------------- -# function stuff +# function # ----------------- def a(a=3): #? int() @@ -71,7 +71,7 @@ a(2) #? [] a(2).func # ----------------- -# class stuff +# class # ----------------- class A(object): a = "" @@ -121,8 +121,18 @@ a.real #? list() str() int() a.a +a = 3 +class a(): + def __init__(self, a): + self.a = a + +#? float() +a(1.0).a +#? +a().a + # ----------------- -# class stuff +# imports # ----------------- math = 3