Skip to content

Commit

Permalink
replace empty equality with boolean operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Feb 10, 2022
1 parent 8eef8d3 commit 2f0f685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_asgiwhitenoise_not_http(
"method": "GET",
}
loop.run_until_complete(asgi_whitenoise(scope, receive, send))
assert receive.events == []
assert not receive.events
assert send.events == [
{"type": "websocket.accept"},
{"type": "websocket.close"},
Expand Down Expand Up @@ -206,7 +206,7 @@ def test_receive_request_with_more_body(loop, receive):
{"type": "http.request"},
]
loop.run_until_complete(receive_request(receive))
assert receive.events == []
assert not receive.events


def test_receive_request_with_invalid_event(loop, receive):
Expand Down

0 comments on commit 2f0f685

Please sign in to comment.