Skip to content

Commit

Permalink
forgot to add one len test
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Nov 17, 2024
1 parent c8a554c commit 40e3fa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_django_servestatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 40e3fa1

Please sign in to comment.