ranger/orm/tests/unit/cms/test_utils.py
Nicholas Jones 57a812acd1 Move services/cms tests to top level test folder
Moves tests out of subfolders so they can be picked up by tox/jenkins

Change-Id: I76369941dff73774f55dd77efd8d396fa9942d7d
2017-08-17 10:03:38 -05:00

16 lines
422 B
Python
Executable File

import json
from wsme.exc import ClientSideError
def get_error(transaction_id, status_code, error_details=None,
message=None):
return ClientSideError(json.dumps({
'code': status_code,
'type': 'test',
'created': '0.0',
'transaction_id': transaction_id,
'message': message if message else error_details,
'details': 'test'
}), status_code=status_code)