def test_pretty_json():
 test_data = {'text': 'text'}
 assert (hug.output_format.pretty_json(test_data).decode('utf8') == '{\n    "text": "text"\n}')

def test_pretty_json ( ) : test_data = { 'text' : 'text' } assert ( hug . output_format . pretty_json ( test_data ) . decode ( 'utf8' ) == '{\n    "text": "text"\n}' )
ensure that its possible to output a hug api method as prettified and indented json .