'Test creating device info (MAC only) when no response.'

def test_device_name_no_data(self):

    with requests_mock.Mocker() as mock_request:
        mock_request.register_uri('GET', ('http://%s/Status_Wireless.live.asp' % TEST_HOST), text=load_fixture('Ddwrt_Status_Wireless.txt'))
        mock_request.register_uri('GET', ('http://%s/Status_Lan.live.asp' % TEST_HOST), text=None)
        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.hass.block_till_done()
        path = self.hass.config.path(device_tracker.YAML_DEVICES)
        devices = config.load_yaml_config_file(path)
        for device in devices:
            _LOGGER.error(devices[device])
            self.assertIn(devices[device]['mac'], load_fixture('Ddwrt_Status_Lan.txt'))
