From 6e53d03c69581982d341f591bfc3a35ec7f324d9 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 21 Jan 2009 13:59:55 -0700 Subject: Command.takes_options and Command.takes_args class attributes can now also be a callable --- tests/test_ipalib/test_frontend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_ipalib/test_frontend.py') diff --git a/tests/test_ipalib/test_frontend.py b/tests/test_ipalib/test_frontend.py index 071a70fd..df61453a 100644 --- a/tests/test_ipalib/test_frontend.py +++ b/tests/test_ipalib/test_frontend.py @@ -136,7 +136,7 @@ class test_Command(ClassChecker): assert list(self.cls().get_args()) == [] args = ('login', 'stuff') o = self.get_instance(args=args) - assert o.get_args() is args + assert tuple(o.get_args()) == args def test_get_options(self): """ @@ -145,7 +145,7 @@ class test_Command(ClassChecker): assert list(self.cls().get_options()) == [] options = ('verbose', 'debug') o = self.get_instance(options=options) - assert o.get_options() is options + assert tuple(o.get_options()) == options def test_args(self): """ -- cgit