def METHOD_NAME(self, job_template, inventory, organization):
    job_template.inventory = inventory
    assert job_template.inventory.hosts.count() == 0
    job_template.job_slice_count = 2
    job_template.inventory.hosts.create(name='foo1')
    assert job_template.get_effective_slice_ct({})
    inventory2 = Inventory.objects.create(organization=organization, name='fooinv')
    [inventory2.hosts.create(name='foo{}'.format(i)) for i in range(3)]
    assert job_template.get_effective_slice_ct({'inventory': inventory2})