MCPcopy Create free account
hub / github.com/aosabook/500lines / assertMessage

Method assertMessage

cluster/code/test/utils.py:16–19  ·  view source on GitHub ↗
(self, destinations, message)

Source from the content-addressed store, hash-verified

14 self.fail("extra messages from node: %r" % (self.node.sent,))
15
16 def assertMessage(self, destinations, message):
17 got = self.node.sent.pop(0)
18 self.assertEqual((sorted(got[0]), got[1]),
19 (sorted(destinations), message))
20
21 def assertNoMessages(self):
22 self.assertEqual(self.node.sent, [])

Callers 15

test_retransmitMethod · 0.80
test_propose_newMethod · 0.80
test_propose_resendMethod · 0.80
test_joinMethod · 0.80
test_JOINMethod · 0.80
test_send_prepareMethod · 0.80
test_PROMISEMethod · 0.80
test_functionMethod · 0.80

Calls 1

popMethod · 0.45

Tested by 15

test_retransmitMethod · 0.64
test_propose_newMethod · 0.64
test_propose_resendMethod · 0.64
test_joinMethod · 0.64
test_JOINMethod · 0.64
test_send_prepareMethod · 0.64
test_PROMISEMethod · 0.64
test_functionMethod · 0.64