#NEWLINE# def test_request_get( self ) : #NEWLINE# #INDENT# '\n            Tests the PokitDok.request convenience method with a GET request.\n            Validates that the requests request is configured correctly and has the appropriate headers.\n        ' #NEWLINE# with HTTMock ( self . mock_api_response ) : #NEWLINE# #INDENT# self . pd_client . request ( self . TEST_REQUEST_PATH , method = 'get' ) #NEWLINE# #UNINDENT# for ( k , v ) in self . BASE_HEADERS . items ( ) : #NEWLINE# #INDENT# assert ( k in self . current_request . headers ) #NEWLINE# actual_value = self . current_request . headers [ k ] #NEWLINE# assert ( v == self . current_request . headers [ k ] ) , self . ASSERTION_EQ_MSG . format ( v , actual_value ) #NEWLINE# #UNINDENT# assert ( 'GET' == self . current_request . method )