(self)
| 17 | |
| 18 | class AsyncTest(TestCase): |
| 19 | def test_should_be_async(self): |
| 20 | nt.assert_false(_should_be_async("False")) |
| 21 | nt.assert_true(_should_be_async("await bar()")) |
| 22 | nt.assert_true(_should_be_async("x = await bar()")) |
| 23 | nt.assert_false( |
| 24 | _should_be_async( |
| 25 | dedent( |
| 26 | """ |
| 27 | async def awaitable(): |
| 28 | pass |
| 29 | """ |
| 30 | ) |
| 31 | ) |
| 32 | ) |
| 33 | |
| 34 | def _get_top_level_cases(self): |
| 35 | # These are test cases that should be valid in a function |
nothing calls this directly
no test coverage detected