def test_set_context(self):
    '\n        `Connection.set_context` specifies a new `Context` instance to be\n        used for the connection.\n        '
    original = Context(SSLv23_METHOD)
    replacement = Context(TLSv1_METHOD)
    connection = Connection(original, None)
    connection.set_context(replacement)
    assert (replacement is connection.get_context())
    del original, replacement
    collect()
`Connection.set_context` specifies a new `Context` instance to be
used for the connection.
def test_set_context(self):
    '\n        `Connection.set_context` specifies a new `Context` instance to be\n        used for the connection.\n        '
    original = Context(SSLv23_METHOD)
    replacement = Context(TLSv1_METHOD)
    connection = Connection(original, None)
    connection.set_context(replacement)
    assert (replacement is connection.get_context())
    del original, replacement
    collect()