'Test get Ddwrt data with request time out.'

@mock.patch('homeassistant.components.device_tracker.ddwrt.requests.get', side_effect=requests.exceptions.Timeout)
@mock.patch('homeassistant.components.device_tracker.ddwrt._LOGGER.error')
def test_get_timeout(self, mock_error, mock_request):

    with assert_setup_component(1, DOMAIN):
        assert setup_component(self.hass, DOMAIN, {DOMAIN: {CONF_PLATFORM: 'ddwrt', CONF_HOST: TEST_HOST, CONF_USERNAME: 'fake_user', CONF_PASSWORD: '0'}})
        self.assertTrue(('Connection    to    the    router    timed    out' in str(mock_error.call_args_list[(-1)])))
