def test_status_view_get_object_context(self):
    ' test status view '
    self.client.login(username='testuser_status', password='D9lPsoHFXeCNKEzM3IgE')
    response = self.client.get('/config/status/')
    analysisstatus_all = Analysisstatus.objects.all().order_by('analysisstatus_name')
    artifactpriority_all = Artifactpriority.objects.all().order_by('artifactpriority_name')
    artifactstatus_all = Artifactstatus.objects.all().order_by('artifactstatus_name')
    casepriority_all = Casepriority.objects.all().order_by('casepriority_name')
    casestatus_all = Casestatus.objects.all().order_by('casestatus_name')
    systemstatus_all = Systemstatus.objects.all().order_by('systemstatus_name')
    taskstatus_all = Taskstatus.objects.all().order_by('taskstatus_name')
    taskpriority_all = Taskpriority.objects.all().order_by('taskpriority_name')
    self.assertEqual(response.context['artifacts_number'], 2)
    self.assertEqual(response.context['cases_number'], 4)
    self.assertEqual(response.context['systems_number'], 3)
    self.assertEqual(response.context['tasks_number'], 1)
    self.assertEqual(type(response.context['analysisstatus_all']), type(analysisstatus_all))
    self.assertEqual(type(response.context['artifactpriority_all']), type(artifactpriority_all))
    self.assertEqual(type(response.context['artifactstatus_all']), type(artifactstatus_all))
    self.assertEqual(type(response.context['casepriority_all']), type(casepriority_all))
    self.assertEqual(type(response.context['casestatus_all']), type(casestatus_all))
    self.assertEqual(type(response.context['systemstatus_all']), type(systemstatus_all))
    self.assertEqual(type(response.context['taskpriority_all']), type(taskpriority_all))
    self.assertEqual(type(response.context['taskstatus_all']), type(taskstatus_all))
test status view
def test_status_view_get_object_context(self):
    '  '
    self.client.login(username='testuser_status', password='D9lPsoHFXeCNKEzM3IgE')
    response = self.client.get('/config/status/')
    analysisstatus_all = Analysisstatus.objects.all().order_by('analysisstatus_name')
    artifactpriority_all = Artifactpriority.objects.all().order_by('artifactpriority_name')
    artifactstatus_all = Artifactstatus.objects.all().order_by('artifactstatus_name')
    casepriority_all = Casepriority.objects.all().order_by('casepriority_name')
    casestatus_all = Casestatus.objects.all().order_by('casestatus_name')
    systemstatus_all = Systemstatus.objects.all().order_by('systemstatus_name')
    taskstatus_all = Taskstatus.objects.all().order_by('taskstatus_name')
    taskpriority_all = Taskpriority.objects.all().order_by('taskpriority_name')
    self.assertEqual(response.context['artifacts_number'], 2)
    self.assertEqual(response.context['cases_number'], 4)
    self.assertEqual(response.context['systems_number'], 3)
    self.assertEqual(response.context['tasks_number'], 1)
    self.assertEqual(type(response.context['analysisstatus_all']), type(analysisstatus_all))
    self.assertEqual(type(response.context['artifactpriority_all']), type(artifactpriority_all))
    self.assertEqual(type(response.context['artifactstatus_all']), type(artifactstatus_all))
    self.assertEqual(type(response.context['casepriority_all']), type(casepriority_all))
    self.assertEqual(type(response.context['casestatus_all']), type(casestatus_all))
    self.assertEqual(type(response.context['systemstatus_all']), type(systemstatus_all))
    self.assertEqual(type(response.context['taskpriority_all']), type(taskpriority_all))
    self.assertEqual(type(response.context['taskstatus_all']), type(taskstatus_all))