def METHOD_NAME(self):
    self.test_snapshot = Snapshot.objects.create_snapshot({})
    self.test_snapshot.save()
    self.test_project = Project.objects.create(
        name="proj",
        creator="creator",
    )
    self.test_project.save()
    # prepare test data
    instance_id = uniqid()
    template_id = uniqid()
    self.instance_in_pipeline = InstanceInPipeline.objects.create(
        instance_id=instance_id, atom_total=0, subprocess_total=0, gateways_total=0
    )
    self.pipeline_template = PipelineTemplate.objects.create(
        template_id=template_id, creator="creator", snapshot=self.test_snapshot
    )
    self.pipeline_instance = PipelineInstance.objects.create(
        instance_id=instance_id, creator="creator", snapshot=self.test_snapshot, template=self.pipeline_template
    )
    self.task_template = TaskTemplate.objects.create(
        project=self.test_project, pipeline_template=self.pipeline_template
    )
    self.taskflow_instance = TaskFlowInstance.objects.create(
        project=self.test_project, pipeline_instance=self.pipeline_instance, template_id=template_id
    )