def test_status_detail_view_not_logged_in(self):
    ' test status view '
    t_1 = datetime(2020, 11, 22, 11, 22, 33, tzinfo=timezone.utc)
    statushistory_id = Statushistory.objects.get(statushistory_time=t_1).statushistory_id
    destination = ('/login/?next=' + urllib.parse.quote((('/config/status/' + str(statushistory_id)) + '/'), safe=''))
    response = self.client.get((('/config/status/' + str(statushistory_id)) + '/'), follow=True)
    self.assertRedirects(response, destination, status_code=302, target_status_code=200)
test status view
def test_status_detail_view_not_logged_in(self):
    '  '
    t_1 = datetime(2020, 11, 22, 11, 22, 33, tzinfo=timezone.utc)
    statushistory_id = Statushistory.objects.get(statushistory_time=t_1).statushistory_id
    destination = ('/login/?next=' + urllib.parse.quote((('/config/status/' + str(statushistory_id)) + '/'), safe=))
    response = self.client.get((('/config/status/' + str(statushistory_id)) + '/'), follow=True)
    self.assertRedirects(response, destination, status_code=302, target_status_code=200)