File: test_recover.py

package info (click to toggle)
python-aioamqp 0.15.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 456 kB
  • sloc: python: 2,741; makefile: 187
file content (20 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
    Amqp basic tests for recover methods
"""

import asynctest

from . import testcase


class RecoverTestCase(testcase.RabbitTestCaseMixin, asynctest.TestCase):

    async def test_basic_recover_async(self):
        await self.channel.basic_recover_async(requeue=True)

    async def test_basic_recover_async_no_requeue(self):
        await self.channel.basic_recover_async(requeue=False)

    async def test_basic_recover(self):
        result = await self.channel.basic_recover(requeue=True)
        self.assertTrue(result)