tests.rest.xsl_transformation.tests_unit¶
Unit tests for xsl transformation rest api
-
class
tests.rest.xsl_transformation.tests_unit.TestGetAllXslTransformation(methodName='runTest')¶ Bases:
django.test.testcases.SimpleTestCase-
setUp()¶ Hook method for setting up the test fixture before exercising it.
-
test_get_all_xsl_document_returns_status_200_with_staff_permission(**keywargs)¶
-
test_get_all_xsl_document_returns_status_403_with_no_permission_needed(**keywargs)¶
-
-
class
tests.rest.xsl_transformation.tests_unit.TestPostXslTransformation(methodName='runTest')¶ Bases:
django.test.testcases.SimpleTestCase-
setUp()¶ Hook method for setting up the test fixture before exercising it.
-
test_post_xsl_document_returns_status_201_if_data_are_valid_with_admin_user(**kwargs)¶
-
test_post_xsl_document_returns_status_400_if_data_are_not_valid_with_admin_user(**kwargs)¶
-
test_post_xsl_document_returns_status_403_if_user_is_not_admin(**keywargs)¶
-