#NEWLINE# def test_dump_response( self ) : #NEWLINE# #INDENT# session = requests . Session ( ) #NEWLINE# recorder = get_betamax ( session ) #NEWLINE# with recorder . use_cassette ( 'simple_get_request' ) : #NEWLINE# #INDENT# response = session . get ( 'https://httpbin.org/get' ) #NEWLINE# #UNINDENT# arr = dump . dump_response ( response ) #NEWLINE# assert ( b'< GET /get HTTP/1.1\r\n' in arr ) #NEWLINE# assert ( b'< Host: httpbin.org\r\n' in arr ) #NEWLINE# assert ( b'> HTTP/? 200 OK\r\n' in arr ) #NEWLINE# assert ( b'> Content-Type: application/json\r\n' in arr )