tests.rest.data.tests_unit

Unit tests for data rest api

class tests.rest.data.tests_unit.TestDataDetail(methodName='runTest')

Bases: django.test.testcases.SimpleTestCase

setUp()

Hook method for setting up the test fixture before exercising it.

test_delete_returns_http_404_when_data_not_found(**keywargs)
test_get_returns_http_404_when_data_not_found(**keywargs)
test_patch_returns_http_400_when_no_update_data_provided(**keywargs)
test_patch_returns_http_404_when_data_not_found(**keywargs)
class tests.rest.data.tests_unit.TestDataDownload(methodName='runTest')

Bases: django.test.testcases.SimpleTestCase

setUp()

Hook method for setting up the test fixture before exercising it.

test_get_returns_http_404_when_data_not_found(**keywargs)
class tests.rest.data.tests_unit.TestDataList(methodName='runTest')

Bases: django.test.testcases.SimpleTestCase

setUp()

Hook method for setting up the test fixture before exercising it.

test_get_all_returns_http_200(**keywargs)
test_post_returns_http_400_if_invalid_data()