Tests requirements are here.
There is a test: https://github.com/simonw/asgi-csrf/blob/main/test_asgi_csrf.py; it's not part of the PyPI source archive though.