From 40e3fa1b7620f88cbbc57249189b084a7d08f439 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Sun, 17 Nov 2024 12:58:04 -0800 Subject: [PATCH] forgot to add one len test --- tests/test_django_servestatic.py | 2 ++ 1 file changed, 2 insertions(+) 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()