freeipa/tests/test_ipalib
Rob Crittenden 33802ab712 Use context to decide which name to return on RequirementsErrors
When a Requirement fails we throw an exception including the name of the
field that is missing. To make the command-line friendlier we have a
cli_name defined which may or may not match the LDAP attribute. This can
be confusing if you are using ipalib directly because the attribute name
missing may not match what is actually required (desc vs description is
a good example).

If you use the context 'cli' then it will throw exceptions using cli_name.
If you use any other context it will use the name of the attribute.

ticket 187
2010-10-28 16:06:06 -04:00
..
__init__.py Changed sub-package docstrings in tests/ to make consintent with other packages 2008-10-08 01:30:52 -06:00
test_backend.py Remove __public__ and __proxy__ hold-overs from Plugin class 2010-01-28 13:32:00 -05:00
test_base.py Copied plugable.NameSpace to base.NameSpace and made many docstring and unit test improvements 2008-12-31 02:28:49 -07:00
test_cli.py Finished reworked cli.CLI class into cli.cli plugin 2009-02-03 15:29:04 -05:00
test_config.py Fix _merge_from_file test 2010-10-18 15:52:20 -04:00
test_crud.py Fix non XML-RPC tests 2010-02-19 18:10:37 -05:00
test_encoder.py Fix Encoder.decode test. 2009-07-02 13:33:02 -04:00
test_errors.py Rename errors2.py to errors.py. Modify all affected files. 2009-04-23 10:29:14 -04:00
test_frontend.py Use context to decide which name to return on RequirementsErrors 2010-10-28 16:06:06 -04:00
test_output.py localize doc strings 2010-03-08 21:10:36 -07:00
test_parameters.py Use context to decide which name to return on RequirementsErrors 2010-10-28 16:06:06 -04:00
test_plugable.py Remove __public__ and __proxy__ hold-overs from Plugin class 2010-01-28 13:32:00 -05:00
test_request.py New Param: Added Param.get_label() method for a way to retrieve translated message at request time 2009-01-05 01:20:14 -07:00
test_rpc.py Add support for client failover to the ipa command-line. 2010-08-16 10:35:27 -04:00
test_text.py Skip the i18n test if the test language has not been built 2010-08-06 15:32:00 -04:00
test_util.py Removed depreciated xmlrpc_marshal() and xmlrpc_unmarshal() functions 2009-02-17 16:03:08 -05:00
test_x509.py Drop our own PKCS#10 ASN.1 decoder and use the one from python-nss 2010-07-29 10:50:10 -04:00