From 97edfb13f7d4b2522c2613e7c68629c25b71dfb2 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 10 Aug 2013 22:26:24 +0430 Subject: [PATCH] some method decorator tests were wrong (incomplete) --- test/completion/decorators.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/completion/decorators.py b/test/completion/decorators.py index 873602eb..7dfe1608 100644 --- a/test/completion/decorators.py +++ b/test/completion/decorators.py @@ -101,15 +101,17 @@ def nothing(a,b,c): class MethodDecoratorAsClass(): class_var = 3 @Decorator - def func_without_self(arg): - return arg + def func_without_self(arg, arg2): + return arg, arg2 @Decorator def func_with_self(self, arg): return self.class_var #? int() -MethodDecoratorAsClass().func_without_self(1) +MethodDecoratorAsClass().func_without_self('')[0] +#? str() +MethodDecoratorAsClass().func_without_self('')[1] #? MethodDecoratorAsClass().func_with_self(1)