def test_get_certificate_none(self):
    '\n        `Connection.get_certificate` returns the local certificate.\n\n        If there is no certificate, it returns None.\n        '
    context = Context(TLSv1_METHOD)
    client = Connection(context, None)
    cert = client.get_certificate()
    assert (cert is None)
`Connection.get_certificate` returns the local certificate.

If there is no certificate, it returns None.
def test_get_certificate_none(self):
    '\n        `Connection.get_certificate` returns the local certificate.\n\n        If there is no certificate, it returns None.\n        '
    context = Context(TLSv1_METHOD)
    client = Connection(context, None)
    cert = client.get_certificate()
    assert (cert is None)