(self)
| 178 | self.assertTrue(inspect.iscoroutinefunction(mock)) |
| 179 | |
| 180 | def test_isawaitable(self): |
| 181 | mock = AsyncMock() |
| 182 | m = mock() |
| 183 | self.assertTrue(inspect.isawaitable(m)) |
| 184 | run(m) |
| 185 | self.assertIn('assert_awaited', dir(mock)) |
| 186 | |
| 187 | def test_iscoroutinefunction_normal_function(self): |
| 188 | def foo(): pass |
nothing calls this directly
no test coverage detected