Esempio n. 1
0
 def test_notify(self):
     s = MagicMock()
     p = Process("proc", s)
     s.reset_mock()
     p.notify_subscribers("block")
     p.q.put.assert_called_once_with(BlockNotify(name="block"))