def test_check_privatekey_valid(self):
    '\n        `Context.check_privatekey` returns `None` if the `Context` instance\n        has been configured to use a matched key and certificate pair.\n        '
    key = load_privatekey(FILETYPE_PEM, client_key_pem)
    cert = load_certificate(FILETYPE_PEM, client_cert_pem)
    context = Context(TLSv1_METHOD)
    context.use_privatekey(key)
    context.use_certificate(cert)
    assert (None is context.check_privatekey())
`Context.check_privatekey` returns `None` if the `Context` instance
has been configured to use a matched key and certificate pair.
def test_check_privatekey_valid(self):
    '\n        `Context.check_privatekey` returns `None` if the `Context` instance\n        has been configured to use a matched key and certificate pair.\n        '
    key = load_privatekey(FILETYPE_PEM, client_key_pem)
    cert = load_certificate(FILETYPE_PEM, client_cert_pem)
    context = Context(TLSv1_METHOD)
    context.use_privatekey(key)
    context.use_certificate(cert)
    assert (None is context.check_privatekey())