'Test Python API get_event_listeners.'

def test_get_event_listeners(self):

    local_data = hass.bus.listeners
    remote_data = remote.get_event_listeners(master_api)
    for event in remote_data:
        self.assertEqual(local_data.pop(event['event']), event['listener_count'])
    self.assertEqual(len(local_data), 0)
    self.assertEqual({}, remote.get_event_listeners(broken_api))
