File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,14 @@ def test_post_files_text(sock, requests):
7171 mock .call (b"\r \n " ),
7272 ]
7373 )
74+ sock .send .assert_has_calls (
75+ [
76+ mock .call (b"Content-Length" ),
77+ mock .call (b": " ),
78+ mock .call (b"131" ),
79+ mock .call (b"\r \n " ),
80+ ]
81+ )
7482 sock .send .assert_has_calls (
7583 [
7684 mock .call (
@@ -113,6 +121,14 @@ def test_post_files_file(sock, requests):
113121 mock .call (b"\r \n " ),
114122 ]
115123 )
124+ sock .send .assert_has_calls (
125+ [
126+ mock .call (b"Content-Length" ),
127+ mock .call (b": " ),
128+ mock .call (b"347" ),
129+ mock .call (b"\r \n " ),
130+ ]
131+ )
116132 sock .send .assert_has_calls (
117133 [
118134 mock .call (
@@ -176,6 +192,14 @@ def test_post_files_complex(sock, requests):
176192 mock .call (b"\r \n " ),
177193 ]
178194 )
195+ sock .send .assert_has_calls (
196+ [
197+ mock .call (b"Content-Length" ),
198+ mock .call (b": " ),
199+ mock .call (b"796" ),
200+ mock .call (b"\r \n " ),
201+ ]
202+ )
179203 sock .send .assert_has_calls (
180204 [
181205 mock .call (
You can’t perform that action at this time.
0 commit comments