Changeset ec63b07 in mod_gnutls


Ignore:
Timestamp:
Dec 4, 2019, 10:05:41 AM (12 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
a2d1bb9
Parents:
6ea34b1
Message:

https-test-client.py: A few more doctests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/https-test-client.py

    r6ea34b1 rec63b07  
    171171
    172172    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        """
    173184        if 'reset' in self.expect:
    174185            return self.expect['reset']
Note: See TracChangeset for help on using the changeset viewer.