diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2009-01-21 13:59:55 -0700 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-02-03 15:28:59 -0500 |
commit | 6e53d03c69581982d341f591bfc3a35ec7f324d9 (patch) | |
tree | 2daddf0eaef54d4a392816e63300b88a3fdb9838 /tests/test_ipalib | |
parent | e0d428f97aad1f9e9c3faedeaddbcade22927d37 (diff) | |
download | freeipa-6e53d03c69581982d341f591bfc3a35ec7f324d9.tar.gz freeipa-6e53d03c69581982d341f591bfc3a35ec7f324d9.tar.xz freeipa-6e53d03c69581982d341f591bfc3a35ec7f324d9.zip |
Command.takes_options and Command.takes_args class attributes can now also be a callable
Diffstat (limited to 'tests/test_ipalib')
-rw-r--r-- | tests/test_ipalib/test_frontend.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_ipalib/test_frontend.py b/tests/test_ipalib/test_frontend.py index 071a70fd5..df61453ab 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): """ |