@classmethod
def setUpTestData(cls):
    test_user = User.objects.create_user(username='testuser_status', password='D9lPsoHFXeCNKEzM3IgE')
    artifactstatus_1 = Artifactstatus.objects.create(artifactstatus_name='artifactstatus_1')
    artifacttype_1 = Artifacttype.objects.create(artifacttype_name='artifacttype_1')
    casepriority_1 = Casepriority.objects.create(casepriority_name='casepriority_1')
    casestatus_1 = Casestatus.objects.create(casestatus_name='casestatus_1')
    systemstatus_1 = Systemstatus.objects.create(systemstatus_name='systemstatus_1')
    taskname_1 = Taskname.objects.create(taskname_name='taskname_1')
    taskpriority_1 = Taskpriority.objects.create(taskpriority_name='prio_1')
    taskstatus_1 = Taskstatus.objects.create(taskstatus_name='taskstatus_1')
    system_1 = System.objects.create(system_name='system_1', systemstatus=systemstatus_1, system_created_by_user_id=test_user, system_modified_by_user_id=test_user)
    System.objects.create(system_name='system_2', systemstatus=systemstatus_1, system_created_by_user_id=test_user, system_modified_by_user_id=test_user)
    System.objects.create(system_name='system_3', systemstatus=systemstatus_1, system_created_by_user_id=test_user, system_modified_by_user_id=test_user)
    Task.objects.create(taskname=taskname_1, taskpriority=taskpriority_1, taskstatus=taskstatus_1, task_modify_time=timezone.now(), task_created_by_user_id=test_user, task_modified_by_user_id=test_user)
    Artifact.objects.create(artifact_name='artifact_1', artifactstatus=artifactstatus_1, artifacttype=artifacttype_1, system=system_1, artifact_created_by_user_id=test_user, artifact_modified_by_user_id=test_user)
    Artifact.objects.create(artifact_name='artifact_2', artifactstatus=artifactstatus_1, artifacttype=artifacttype_1, system=system_1, artifact_created_by_user_id=test_user, artifact_modified_by_user_id=test_user)
    Case.objects.create(case_name='case_1', casepriority=casepriority_1, casestatus=casestatus_1, case_is_incident=True, case_created_by_user_id=test_user)
    Case.objects.create(case_name='case_2', casepriority=casepriority_1, casestatus=casestatus_1, case_is_incident=True, case_created_by_user_id=test_user)
    Case.objects.create(case_name='case_3', casepriority=casepriority_1, casestatus=casestatus_1, case_is_incident=True, case_created_by_user_id=test_user)
    Case.objects.create(case_name='case_4', casepriority=casepriority_1, casestatus=casestatus_1, case_is_incident=True, case_created_by_user_id=test_user)
    t_1 = datetime(2020, 11, 22, 11, 22, 33, tzinfo=timezone.utc)
    with patch.object(timezone, 'now', return_value=t_1):
        Statushistory.objects.create()
@classmethod
def setUpTestData(cls):
    test_user = User.objects.create_user(username='testuser_status', password='D9lPsoHFXeCNKEzM3IgE')
    artifactstatus_1 = Artifactstatus.objects.create(artifactstatus_name='artifactstatus_1')
    artifacttype_1 = Artifacttype.objects.create(artifacttype_name='artifacttype_1')
    casepriority_1 = Casepriority.objects.create(casepriority_name='casepriority_1')
    casestatus_1 = Casestatus.objects.create(casestatus_name='casestatus_1')
    systemstatus_1 = Systemstatus.objects.create(systemstatus_name='systemstatus_1')
    taskname_1 = Taskname.objects.create(taskname_name='taskname_1')
    taskpriority_1 = Taskpriority.objects.create(taskpriority_name='prio_1')
    taskstatus_1 = Taskstatus.objects.create(taskstatus_name='taskstatus_1')
    system_1 = System.objects.create(system_name='system_1', systemstatus=systemstatus_1, system_created_by_user_id=test_user, system_modified_by_user_id=test_user)
    System.objects.create(system_name='system_2', systemstatus=systemstatus_1, system_created_by_user_id=test_user, system_modified_by_user_id=test_user)
    System.objects.create(system_name='system_3', systemstatus=systemstatus_1, system_created_by_user_id=test_user, system_modified_by_user_id=test_user)
    Task.objects.create(taskname=taskname_1, taskpriority=taskpriority_1, taskstatus=taskstatus_1, task_modify_time=timezone.now(), task_created_by_user_id=test_user, task_modified_by_user_id=test_user)
    Artifact.objects.create(artifact_name='artifact_1', artifactstatus=artifactstatus_1, artifacttype=artifacttype_1, system=system_1, artifact_created_by_user_id=test_user, artifact_modified_by_user_id=test_user)
    Artifact.objects.create(artifact_name='artifact_2', artifactstatus=artifactstatus_1, artifacttype=artifacttype_1, system=system_1, artifact_created_by_user_id=test_user, artifact_modified_by_user_id=test_user)
    Case.objects.create(case_name='case_1', casepriority=casepriority_1, casestatus=casestatus_1, case_is_incident=True, case_created_by_user_id=test_user)
    Case.objects.create(case_name='case_2', casepriority=casepriority_1, casestatus=casestatus_1, case_is_incident=True, case_created_by_user_id=test_user)
    Case.objects.create(case_name='case_3', casepriority=casepriority_1, casestatus=casestatus_1, case_is_incident=True, case_created_by_user_id=test_user)
    Case.objects.create(case_name='case_4', casepriority=casepriority_1, casestatus=casestatus_1, case_is_incident=True, case_created_by_user_id=test_user)
    t_1 = datetime(2020, 11, 22, 11, 22, 33, tzinfo=timezone.utc)
    with patch.object(timezone, 'now', return_value=t_1):
        Statushistory.objects.create()