diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-25 02:13:16 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-25 02:13:16 +0000 |
commit | 023f612921b4d9cbd15e3148d09c02932a61d73e (patch) | |
tree | c057625096fa46123f653876e7d20760237e8119 /ipalib/crud.py | |
parent | 9f704e001daf760de92c590f69582fc7ffd0c0f2 (diff) | |
download | freeipa-023f612921b4d9cbd15e3148d09c02932a61d73e.tar.gz freeipa-023f612921b4d9cbd15e3148d09c02932a61d73e.tar.xz freeipa-023f612921b4d9cbd15e3148d09c02932a61d73e.zip |
361: Implemented crud.Add.get_options() method; added corresponding unit tests
Diffstat (limited to 'ipalib/crud.py')
-rw-r--r-- | ipalib/crud.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/crud.py b/ipalib/crud.py index 9f410fde..bdcf3047 100644 --- a/ipalib/crud.py +++ b/ipalib/crud.py @@ -25,7 +25,9 @@ import frontend, errors class Add(frontend.Method): - pass + def get_options(self): + assert 'params' in self.obj, list(self.obj) + return self.obj.params() class Get(frontend.Method): |