def test_broadcasting(self):
        on_signal = []
        def listen(signal, args):
            on_signal.append((signal, args))
        signals.broadcast.connect(listen)

        sig = signals.Signal('sig', ['foo'])
        sig.emit(foo=42)

        self.assertEqual(on_signal, [(sig, {'foo': 42})])
Broadcast signals
dataset/ETHPy150Open mitsuhiko/solace/solace/tests/signals.py/SignalTestCase.test_broadcasting