def METHOD_NAME(self):
    """test detail view"""
    # get object
    casestatus_1 = Casestatus.objects.get(casestatus_name='casestatus_1')
    # login testuser
    self.client.login(
        username='testuser_casestatus', password='6imkOwOYEjWv5TnOzjQ1'
    )
    # get response
    response = self.client.get(
        '/casestatus/detail/' + str(casestatus_1.casestatus_id) + '/'
    )
    # compare
    self.assertEqual(str(response.context['user']), 'testuser_casestatus')