#NEWLINE# @ pytest . mark . httpretty #NEWLINE# def test_headers_default( resource ) : #NEWLINE# #INDENT# httpretty . register_uri ( httpretty . GET , resource . url , body = '[]' , content_type = 'application/json' ) #NEWLINE# resource . collection . count ( ) #NEWLINE# headers = resource . collection . response . request . headers #NEWLINE# assert ( headers [ 'Accept' ] == 'application/json' ) #NEWLINE# assert ( headers [ 'Content-Type' ] == 'application/json' ) #NEWLINE# assert headers [ 'User-Agent' ] . startswith ( 'durga' )