'warnings are emitted with requests.get'

def test_https_warnings(self, httpbin_secure, httpbin_ca_bundle):

    if (HAS_MODERN_SSL or HAS_PYOPENSSL):
        warnings_expected = ('SubjectAltNameWarning',)
    else:
        warnings_expected = ('SNIMissingWarning', 'InsecurePlatformWarning', 'SubjectAltNameWarning')
    with pytest.warns(None) as warning_records:
        warnings.simplefilter('always')
        requests.get(httpbin_secure('status', '200'), verify=httpbin_ca_bundle)
    warning_records = [item for item in warning_records if (item.category.__name__ != 'ResourceWarning')]
    warnings_category = tuple((item.category.__name__ for item in warning_records))
    assert (warnings_category == warnings_expected)
