Asynctest doesn't work with python 3.8 and above. Asynctest upstream is [aware](https://github.com/Martiusweb/asynctest/issues/132) of this breakage and recommends using the built-in AsyncMock instead. See also https://github.com/Martiusweb/asynctest/issues/144 and https://github.com/Martiusweb/asynctest/issues/126 .