summaryrefslogtreecommitdiffstats
path: root/tests/python
Commit message (Collapse)AuthorAgeFilesLines
* Implement total ordering for PKISubsystem and PKIInstanceChristian Heimes2016-04-021-0/+61
| | | | | | | | In Python 3 subclasses no longer implement automatic ordering. To provide ordering for sort() and custom comparison, __eq__ and __lt__ are required. https://fedorahosted.org/pki/ticket/2216
* Handle JSON decode error in handle_exceptions()Christian Heimes2015-07-151-0/+65
pki.handle_exceptions() raises a JSON decode exception when the body of the HTTPException is not a valid JSON string. The JSON exception hides the true error message. The patch also fixes a bug in PKIException.from_json(). The code and ClassName attribute are now correctly set. Finally we have our first unit test. https://fedorahosted.org/pki/ticket/1488 https://fedorahosted.org/freeipa/ticket/5129