'Test the setup.'

def _setup(self, mock_requests):

    self.mock_post = mock_requests.post
    self.mock_request_exception = Exception
    mock_requests.exceptions.RequestException = self.mock_request_exception
    config = {'logentries': {'token': 'token'}}
    self.hass.bus.listen = mock.MagicMock()
    setup_component(self.hass, logentries.DOMAIN, config)
    self.handler_method = self.hass.bus.listen.call_args_list[0][0][1]
