def METHOD_NAME(self):
    bbv = BitbakeVersion.objects.create(name='bbv1', giturl='/tmp/',
                                        branch='master', dirpath='')
    release = Release.objects.create(name='release1',
                                     bitbake_version=bbv)
    self.project1 = Project.objects.create_project(name=self.PROJECT_NAME,
                                                   release=release)
    self.project1.save()
    self.project2 = Project.objects.create_project(name=self.PROJECT_NAME,
                                                   release=release)
    self.project2.save()
    self.default_project = Project.objects.create_project(
        name=self.CLI_BUILDS_PROJECT_NAME,
        release=release
    )
    self.default_project.is_default = True
    self.default_project.save()
    # parameters for builds to associate with the projects
    now = timezone.now()
    self.project1_build_success = {
        'project': self.project1,
        'started_on': now,
        'completed_on': now,
        'outcome': Build.SUCCEEDED
    }
    self.project1_build_in_progress = {
        'project': self.project1,
        'started_on': now,
        'completed_on': now,
        'outcome': Build.IN_PROGRESS
    }
    self.project2_build_success = {
        'project': self.project2,
        'started_on': now,
        'completed_on': now,
        'outcome': Build.SUCCEEDED
    }
    self.project2_build_in_progress = {
        'project': self.project2,
        'started_on': now,
        'completed_on': now,
        'outcome': Build.IN_PROGRESS
    }