def METHOD_NAME(self):
    cfg1 = broker.Configuration(broker.BrokerOptions())
    cfg1.openssl_certificate = data_path("cert.1.pem")
    cfg1.openssl_key = data_path("key.1.pem")
    cfg1.openssl_cafile = data_path("ca.pem")
    cfg2 = broker.Configuration(broker.BrokerOptions())
    cfg2.openssl_certificate = data_path("cert.self-signed.pem")
    cfg2.openssl_key = data_path("key.self-signed.pem")
    cfg2.openssl_cafile = data_path("cert.self-signed.pem")
    with broker.Endpoint(cfg1) as ep1, \
         broker.Endpoint(cfg2) as ep2:
        port = ep1.listen("127.0.0.1", 0)
        r = ep2.peer("127.0.0.1", port, 0)
        self.assertEqual(r, False)
    with broker.Endpoint(cfg2) as ep1, \
         broker.Endpoint(cfg1) as ep2:
        port = ep1.listen("127.0.0.1", 0)
        r = ep2.peer("127.0.0.1", port, 0)
        self.assertEqual(r, False)