#NEWLINE# def test_maybe_blob_or_json( simple_app ) : #NEWLINE# #INDENT# app_client = simple_app . app . test_client ( ) #NEWLINE# resp = app_client . get ( '/v1.0/binary-response' ) #NEWLINE# assert ( resp . status_code == 200 ) #NEWLINE# assert ( resp . content_type == 'application/octet-stream' ) #NEWLINE# ( text , number ) = unpack ( '!4sh' , resp . data ) #NEWLINE# assert ( text == b'cool' ) #NEWLINE# assert ( number == 8 )