Conditions | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from curio import run |
||
6 | def test_condition(): |
||
7 | async def target_test(value): |
||
8 | return value |
||
9 | |||
10 | assert run( |
||
11 | condition(target_test, value=True) |
||
12 | ) # pylint: disable=unexpected-keyword-arg |
||
13 | |||
14 | assert not run( |
||
15 | condition(target_test, value=False) |
||
16 | ) # pylint: disable=unexpected-keyword-arg |
||
31 |