test_rgpd_raw_public.py 362 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
from django.test import TestCase
from rest_framework.test import APIClient


class HasAccessTestCase(TestCase):
    """
    Test to check that the RGPD doc is publicly accessible
    """

    def test_unauthentificated_can_access(self):
        client = APIClient()
        response = client.get("/rgpd-raw/")
        self.assertEqual(response.status_code, 200)