File: test_async.py

package info (click to toggle)
python-ddt 1.7.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 256 kB
  • sloc: python: 785; makefile: 147; sh: 11
file content (11 lines) | stat: -rw-r--r-- 258 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import aiounittest

from ddt import ddt, data
from test.mycode import larger_than_two


@ddt
class TestAsync(aiounittest.AsyncTestCase):
    @data(3, 4, 12, 23)
    async def test_larger_than_two(self, value):
        self.assertTrue(larger_than_two(value))