diff --git a/tests/test_django_servestatic.py b/tests/test_django_servestatic.py index 4dca965..5dfe784 100644 --- a/tests/test_django_servestatic.py +++ b/tests/test_django_servestatic.py @@ -433,6 +433,8 @@ def test_large_static_file(asgi_application, static_files): receive = AsgiReceiveEmulator() send = AsgiSendEmulator() asyncio.run(AsgiAppServer(asgi_application)(scope, receive, send)) + assert len(send.body) == len(static_files.txt_content) + assert len(send.body) == 10001 assert send.body == static_files.txt_content assert send.body_count == 2 assert send.headers[b"Content-Length"] == str(len(static_files.txt_content)).encode()