'Setup component.'

@patch('homeassistant.components.microsoft_face.MicrosoftFace.update_store', return_value=mock_coro())
def test_setup_component_test_service(self, mock_update):

    with assert_setup_component(3, mf.DOMAIN):
        setup_component(self.hass, mf.DOMAIN, self.config)
    assert self.hass.services.has_service(mf.DOMAIN, 'create_group')
    assert self.hass.services.has_service(mf.DOMAIN, 'delete_group')
    assert self.hass.services.has_service(mf.DOMAIN, 'train_group')
    assert self.hass.services.has_service(mf.DOMAIN, 'create_person')
    assert self.hass.services.has_service(mf.DOMAIN, 'delete_person')
    assert self.hass.services.has_service(mf.DOMAIN, 'face_person')
