ranger/orm/tests/unit/fms/test_utils.py
Nicholas Jones c86c404c31 Move flavor_manager tests to top level folder
Moves all tests under orm/services/flavor_manager to top level tests
folder, and makes changes to get them passing.

Change-Id: I6e1bff032a1a90e60529bd0ed42f1c0b822687df
2017-08-22 13:10:08 -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)