':py:obj:`Connection.get_peer_cert_chain` returns :py:obj:`None` if the peer sends no
certificate chain.'

def test_get_peer_cert_chain_none(self):

    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()
    self._interactInMemory(client, server)
    self.assertIdentical(None, server.get_peer_cert_chain())
