We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35afe12 commit 73b501dCopy full SHA for 73b501d
1 file changed
tests/test_varys.py
@@ -305,9 +305,11 @@ def tearDown(self):
305
306
def test_not_permitted_declare_fail(self):
307
self.v.send(TEXT, "test-exchange-2", queue_suffix="test_queue")
308
- with self.assertRaises(pika_exceptions.ChannelClosedByBroker) as cm:
+ with self.assertRaises(pika_exceptions.ChannelClosed) as cm:
309
310
311
+ self.assertEqual(cm.exception.reply_code, 403)
312
+
313
def test_send_receive_extant_queue(self):
314
self.v.send(TEXT, "test-exchange", queue_suffix="test_queue")
315
message = self.v.receive("test-exchange", queue_suffix="test_queue")
0 commit comments