def METHOD_NAME(self):
    """unauthorized access is forbidden"""
    # get object
    casepriority_api_1 = Casepriority.objects.get(
        casepriority_name='casepriority_api_1'
    )
    # get response
    response = self.client.get(
        '/api/casepriority/' + str(casepriority_api_1.casepriority_id) + '/'
    )
    # compare
    self.assertEqual(response.status_code, 401)