def test_text():
 test_data = BytesIO('{"a": "b"}')
 assert (hug.input_format.text(test_data) == '{"a": "b"}')

def test_text ( ) : test_data = BytesIO ( '{"a": "b"}' ) assert ( hug . input_format . text ( test_data ) == '{"a": "b"}' )
test that "text" image can be loaded .