MCPcopy
hub / github.com/pika/pika / test

Method test

tests/acceptance/blocking_adapter_test.py:307–318  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

305class TestUpdateSecret(BlockingTestCaseBase):
306
307 def test(self):
308 connection = self._connect()
309 channel = connection.channel()
310
311 # Update secret
312 connection.update_secret("new_secret", "reason")
313
314 # Now check is_open/is_closed on channel and connection
315 self.assertTrue(channel.is_open)
316 self.assertFalse(channel.is_closed)
317 self.assertTrue(connection.is_open)
318 self.assertFalse(connection.is_closed)
319
320
321class TestUpdateSecretOnClosedRaisesWrongState(BlockingTestCaseBase):

Callers

nothing calls this directly

Calls 3

_connectMethod · 0.45
channelMethod · 0.45
update_secretMethod · 0.45

Tested by

no test coverage detected