mock.delete - python examples

Here are the examples of the python api mock.delete taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Complete Implementation : tests.py
Copyright MIT License
Author : gabor-boros
    @requests_mock.mock()
    def test_delete(self, mock):
        mock.delete('{0}/endpoint/1/'.format(self.host), status_code=204)
        response = self.service.remote_call(method='DELETE', api='endpoint/1/')

        self.astertEqual(response.status_code, 204)