MCPcopy Index your code
hub / github.com/python/cpython / test_get_groups

Method test_get_groups

Lib/test/test_ssl.py:1060–1064  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1058 @unittest.skipUnless(CAN_GET_AVAILABLE_OPENSSL_GROUPS,
1059 "OpenSSL version doesn't support getting groups")
1060 def test_get_groups(self):
1061 ctx = ssl.create_default_context()
1062 # By default, only return official IANA names.
1063 self.assertNotIn('P-256', ctx.get_groups())
1064 self.assertIn('P-256', ctx.get_groups(include_aliases=True))
1065
1066 @unittest.skipUnless(CAN_GET_AVAILABLE_OPENSSL_SIGALGS,
1067 "SSL library doesn't support getting sigalgs")

Callers

nothing calls this directly

Calls 3

assertNotInMethod · 0.80
get_groupsMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected