def test_put(self):
        with HTTMock(self.mock_api_response):
            url = '{0}/{1}'.format(self.TEST_REQUEST_PATH, 123456)
            self.pd_client.put(url, data={'first_name': 'Oscar', 'last_name': 'Whitmire'})

        for k, v in self.JSON_HEADERS.items():
            assert k in self.current_request.headers

            actual_value = self.current_request.headers[k]
            assert v == self.current_request.headers[k], self.ASSERTION_EQ_MSG.format(v, actual_value)

        assert 'PUT' == self.current_request.method
Tests the PokitDok.put convenience method.
dataset/ETHPy150Open pokitdok/pokitdok-python/tests/test_api_client.py/TestAPIClient.test_put