def METHOD_NAME(self):
    pc = PlaybookConfig.objects.create(name="test", type=["ip"], description="test")
    pc.analyzers.set([AnalyzerConfig.objects.first()])
    j1 = Job.objects.create(
        user=self.superuser,
        observable_name="test3.com",
        observable_classification="domain",
        status="reported_without_fails",
        playbook_to_execute=pc,
        finished_analysis_time=now(),
    )
    j2 = Job.objects.create(
        user=self.user,
        observable_name="test3.com",
        observable_classification="domain",
        status="reported_without_fails",
        playbook_to_execute=pc,
        finished_analysis_time=now(),
    )
    j3 = Job.objects.create(
        user=self.superuser,
        observable_name="test3.com",
        observable_classification="domain",
        status="reported_without_fails",
        playbook_to_execute=pc,
        finished_analysis_time=now(),
    )
    subq = PlaybookConfigQuerySet._subquery_user(self.user)
    pc = PlaybookConfig.objects.annotate(weight=subq).get(name="test")
    self.assertEqual(1, pc.weight)
    j1.delete()
    j2.delete()
    j3.delete()
    pc.delete()