def test_json_underscore():
 test_data = BytesIO('{"CamelCase": {"becauseWeCan": "ValueExempt"}}')
 assert (hug.input_format.json_underscore(test_data) == {'camel_case': {'because_we_can': 'ValueExempt'}})

def test_json_underscore ( ) : test_data = BytesIO ( '{"CamelCase": {"becauseWeCan": "ValueExempt"}}' ) assert ( hug . input_format . json_underscore ( test_data ) == { 'camel_case' : { 'because_we_can' : 'ValueExempt' } } )
ensure that camelcase keys can be converted into under_score for easier use within python .