def METHOD_NAME(self):
    component_1 = ServiceComponent.objects.create(
        prototype=Prototype.objects.create(
            bundle=self.bundle,
            type="component",
            display_name="test_component_1",
        ),
        cluster=self.cluster,
        service=self.service,
        _maintenance_mode=MaintenanceMode.ON,
    )
    component_2 = ServiceComponent.objects.create(
        prototype=Prototype.objects.create(
            bundle=self.bundle,
            type="component",
            display_name="test_component_2",
        ),
        cluster=self.cluster,
        service=self.service,
        _maintenance_mode=MaintenanceMode.ON,
    )
    host = Host.objects.create(
        fqdn="test_host",
        prototype=Prototype.objects.create(bundle=self.bundle, type="host"),
        maintenance_mode=MaintenanceMode.OFF,
    )
    HostComponent.objects.create(
        cluster=self.cluster,
        host=host,
        service=self.service,
        component=component_1,
    )
    HostComponent.objects.create(
        cluster=self.cluster,
        host=host,
        service=self.service,
        component=component_2,
    )
    self.assertEqual(self.service.maintenance_mode, MaintenanceMode.ON)
    self.client.post(
        path=reverse(viewname="v1:component-maintenance-mode", kwargs={"component_id": component_2.pk}),
        data={"maintenance_mode": MaintenanceMode.OFF},
        content_type=APPLICATION_JSON,
    )
    self.assertEqual(self.service.maintenance_mode, MaintenanceMode.OFF)