MCPcopy
hub / github.com/tornadoweb/tornado / test_notify_all

Method test_notify_all

tornado/test/locks_test.py:92–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

90 self.assertEqual(list(range(6)), self.history)
91
92 def test_notify_all(self):
93 c = locks.Condition()
94 for i in range(4):
95 self.record_done(c.wait(), i)
96
97 c.notify_all()
98 self.loop_briefly()
99 self.history.append("notify_all")
100
101 # Callbacks execute in the order they were registered.
102 self.assertEqual(list(range(4)) + ["notify_all"], self.history) # type: ignore
103
104 @gen_test
105 def test_wait_timeout(self):

Callers

nothing calls this directly

Calls 5

record_doneMethod · 0.95
waitMethod · 0.95
notify_allMethod · 0.95
loop_brieflyMethod · 0.95
appendMethod · 0.80

Tested by

no test coverage detected