We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76ac0b0 commit 6517341Copy full SHA for 6517341
1 file changed
tests/test_integration.py
@@ -154,6 +154,19 @@ def test_https_binary_response(self):
154
finally:
155
client.close()
156
157
+ def test_https_expect_100_continue(self):
158
+ """Test Expect: 100-continue with real server"""
159
+ client = uhttp_client.HttpClient('https://httpbin.org')
160
+ try:
161
+ body = b'test data for 100 continue'
162
+ response = client.post(
163
+ '/post', data=body, expect_continue=True).wait()
164
+ self.assertEqual(response.status, 200)
165
+ # httpbin echoes back the data
166
+ self.assertEqual(response.json()['data'], body.decode())
167
+ finally:
168
+ client.close()
169
+
170
171
@unittest.skipIf(not HTTPBIN_AVAILABLE, SKIP_REASON)
172
class TestHTTPSAuthIntegration(unittest.TestCase):
0 commit comments