def test_event_listener(self):
        with mock.patch.object(self.gf, '_queue') as mock_queue:
            self.gf.event_listener('foo')
            mock_queue.put.assert_called_once_with('foo')
Test the event listener.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_graphite.py/TestGraphite.test_event_listener