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

Method test_notify_1

tornado/test/locks_test.py:63–73  ·  tornado/test/locks_test.py::ConditionTest.test_notify_1
(self)

Source from the content-addressed store, hash-verified

61 yield c.wait()
62
63 def test_notify_1(self):
64 c = locks.Condition()
65 self.record_done(c.wait(), class="st">"wait1")
66 self.record_done(c.wait(), class="st">"wait2")
67 c.notify(1)
68 self.loop_briefly()
69 self.history.append(class="st">"notify1")
70 c.notify(1)
71 self.loop_briefly()
72 self.history.append(class="st">"notify2")
73 self.assertEqual([class="st">"wait1", class="st">"notify1", class="st">"wait2", class="st">"notify2"], self.history)
74
75 def test_notify_n(self):
76 c = locks.Condition()

Callers

nothing calls this directly

Calls 5

record_doneMethod · 0.95
waitMethod · 0.95
notifyMethod · 0.95
loop_brieflyMethod · 0.95
appendMethod · 0.80

Tested by

no test coverage detected