How to use the ndlib.restutil.deleteJson function in ndlib

To help you get started, we’ve selected a few ndlib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github neurodata / ndstore / test / test_resource.py View on Github external
def test_delete_dataset(self):
    response = deleteJson('https://{}/resource/dataset/{}/'.format(SITE_HOST, p.dataset))
    assert(response.status_code == 204)
github neurodata / ndstore / test / test_resource.py View on Github external
def test_delete_channel(self):
    response = deleteJson('https://{}/resource/dataset/{}/project/{}/channel/{}/'.format(SITE_HOST, p.dataset, p.project, p.channels[0]))
    assert(response.status_code == 204)
github neurodata / ndstore / test / test_resource.py View on Github external
def test_delete_project(self):
    response = deleteJson('https://{}/resource/dataset/{}/project/{}/'.format(SITE_HOST, p.dataset, p.project))
    assert(response.status_code == 204)
github neurodata / ndstore / test / test_resource.py View on Github external
def test_delete_token(self):
    response = deleteJson('https://{}/resource/dataset/{}/project/{}/token/{}/'.format(SITE_HOST, p.dataset, p.project, p.token))
    assert(response.status_code == 204)