Changeset ec63b07 in mod_gnutls
- Timestamp:
- Dec 4, 2019, 10:05:41 AM (3 years ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- a2d1bb9
- Parents:
- 6ea34b1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/https-test-client.py
r6ea34b1 rec63b07 171 171 172 172 def expects_conn_reset(self): 173 """Returns True if running this request is expected to fail due to the 174 connection being reset. That usually means the underlying TLS 175 connection failed. 176 177 >>> r1 = TestRequest(path='/test.txt', method='GET', headers={}, expect={'status': 200, 'body': {'contains': 'test'}}) 178 >>> r1.expects_conn_reset() 179 False 180 >>> r2 = TestRequest(path='/test.txt', method='GET', headers={}, expect={'reset': True}) 181 >>> r2.expects_conn_reset() 182 True 183 """ 173 184 if 'reset' in self.expect: 174 185 return self.expect['reset']
Note: See TracChangeset
for help on using the changeset viewer.