Skip to content

Commit d5614b2

Browse files
committed
Fix test file name
1 parent 8a14e8d commit d5614b2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/method_files.py renamed to tests/files_test.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)