def test_get_peer_cert_chain_none(self):
    '\n        `Connection.get_peer_cert_chain` returns `None` if the peer sends\n        no certificate chain.\n        '
    ctx = Context(TLSv1_METHOD)
    ctx.use_privatekey(load_privatekey(FILETYPE_PEM, server_key_pem))
    ctx.use_certificate(load_certificate(FILETYPE_PEM, server_cert_pem))
    server = Connection(ctx, None)
    server.set_accept_state()
    client = Connection(Context(TLSv1_METHOD), None)
    client.set_connect_state()
    interact_in_memory(client, server)
    assert (None is server.get_peer_cert_chain())
`Connection.get_peer_cert_chain` returns `None` if the peer sends
no certificate chain.
def test_get_peer_cert_chain_none(self):
    '\n        `Connection.get_peer_cert_chain` returns `None` if the peer sends\n        no certificate chain.\n        '
    ctx = Context(TLSv1_METHOD)
    ctx.use_privatekey(load_privatekey(FILETYPE_PEM, server_key_pem))
    ctx.use_certificate(load_certificate(FILETYPE_PEM, server_cert_pem))
    server = Connection(ctx, None)
    server.set_accept_state()
    client = Connection(Context(TLSv1_METHOD), None)
    client.set_connect_state()
    interact_in_memory(client, server)
    assert (None is server.get_peer_cert_chain())