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