def test_subscribe(self):
        fake_hass = mock.MagicMock()
        gf = graphite.GraphiteFeeder(fake_hass, 'foo', 123, 'ha')
        fake_hass.bus.listen_once.has_calls([
            mock.call(EVENT_HOMEASSISTANT_START, gf.start_listen),
            mock.call(EVENT_HOMEASSISTANT_STOP, gf.shutdown),
        ])
        fake_hass.bus.listen.assert_called_once_with(
            EVENT_STATE_CHANGED, gf.event_listener)
Get the details about a profile type.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_graphite.py/TestGraphite.test_subscribe--crossover with--dataset/ETHPy150Open openstack/python-senlinclient/senlinclient/v1/shell.py/do_profile_type_show