def test_multiple_receivers(self):
    self.assertEqual(self.cb1, 0)
    self.assertEqual(self.cb2, 0)
    self.assertEqual(self.cb3, 0)
    self.assertEqual(self.cb4, 0)
    dispatcher.subscribe('cb2_sig', self.callback_1234)
    dispatcher.publish('cb2_sig')
    self.assertEqual(self.cb1, 1)
    self.assertEqual(self.cb2, 2)
    self.assertEqual(self.cb3, 3)
    self.assertEqual(self.cb4, 4)
def test_multiple_receivers(self):
    self.assertEqual(self.cb1, 0)
    self.assertEqual(self.cb2, 0)
    self.assertEqual(self.cb3, 0)
    self.assertEqual(self.cb4, 0)
    dispatcher.subscribe('cb2_sig', self.callback_1234)
    dispatcher.publish('cb2_sig')
    self.assertEqual(self.cb1, 1)
    self.assertEqual(self.cb2, 2)
    self.assertEqual(self.cb3, 3)
    self.assertEqual(self.cb4, 4)