diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-30 17:47:56 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-30 17:47:56 -0600 |
commit | a360b6479c515c723e6b6ad6909f78f40d24a069 (patch) | |
tree | 51c92646cf17029f28481413d232c3cd707a66d0 /tests/test_ipalib/test_crud.py | |
parent | 335206930979d278e871a5abbfa277e52d3d5bf1 (diff) | |
download | freeipa-a360b6479c515c723e6b6ad6909f78f40d24a069.tar.gz freeipa-a360b6479c515c723e6b6ad6909f78f40d24a069.tar.xz freeipa-a360b6479c515c723e6b6ad6909f78f40d24a069.zip |
Fixed test_Del.test_get_options()
Diffstat (limited to 'tests/test_ipalib/test_crud.py')
-rw-r--r-- | tests/test_ipalib/test_crud.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/test_ipalib/test_crud.py b/tests/test_ipalib/test_crud.py index 421eaca8..259bc60d 100644 --- a/tests/test_ipalib/test_crud.py +++ b/tests/test_ipalib/test_crud.py @@ -21,7 +21,7 @@ Test the `ipalib.crud` module. """ -from tests.util import read_only, raises, ClassChecker +from tests.util import read_only, raises, get_api, ClassChecker from ipalib import crud, frontend, plugable, config @@ -35,12 +35,7 @@ class CrudChecker(ClassChecker): Return a finalized `ipalib.plugable.API` instance. """ assert self.cls.__bases__ == (frontend.Method,) - api = plugable.API( - frontend.Object, - frontend.Method, - frontend.Property, - ) - #config.set_default_env(api.env) + (api, home) = get_api() class user(frontend.Object): takes_params = ( 'givenname', @@ -135,8 +130,9 @@ class test_Del(CrudChecker): Test the `ipalib.crud.Del.get_options` method. """ api = self.get_api() - assert list(api.Method.user_verb.options) == [] - assert len(api.Method.user_verb.options) == 0 + assert list(api.Method.user_verb.options) == \ + ['givenname', 'sn', 'initials'] + assert len(api.Method.user_verb.options) == 3 class test_Mod(CrudChecker): |