'Setup component, test train groups services.'

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

    with assert_setup_component(3, mf.DOMAIN):
        setup_component(self.hass, mf.DOMAIN, self.config)
    aioclient_mock.post(self.endpoint_url.format('persongroups/service_group/train'), status=200, text='{}')
    mf.train_group(self.hass, 'Service    Group')
    self.hass.block_till_done()
    assert (len(aioclient_mock.mock_calls) == 1)
