def test_unauthenticated_access(self):
        response = self.client.get('/api/knowledge/folders')
        # Redirects as unauthenticated
        self.assertEquals(response.status_code, 401)
Test index page at /api/knowledge/folders
dataset/ETHPy150Open treeio/treeio/treeio/knowledge/api/tests.py/KnowledgeViewsTest.test_unauthenticated_access