'Test the setup for query failures.'

def test_setup_query_fail(self, mock_client):

    config = {'influxdb': {'host': 'host', 'username': 'user', 'password': 'pass'}}
    mock_client.return_value.query.side_effect = influx_client.exceptions.InfluxDBClientError('fake')
    assert (not setup_component(self.hass, influxdb.DOMAIN, config))
