def test_device_hidden(self):
        dev_id = 'test_entity'
        entity_id = device_tracker.ENTITY_ID_FORMAT.format(dev_id)
        device = device_tracker.Device(
            self.hass, timedelta(seconds=180), 0, True, dev_id, None,
            away_hide=True)
        device_tracker.update_config(self.yaml_devices, dev_id, device)

        scanner = get_component('device_tracker.test').SCANNER
        scanner.reset()

        self.assertTrue(device_tracker.setup(self.hass, {
            device_tracker.DOMAIN: {CONF_PLATFORM: 'test'}}))

        self.assertTrue(self.hass.states.get(entity_id)
                            .attributes.get(ATTR_HIDDEN))
With the C{savestats} option specified,
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/device_tracker/test_init.py/TestComponentsDeviceTracker.test_device_hidden--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/test/test_twistd.py/AppProfilingTests.test_cProfileSaveStats