def test_method(self):
    '\n        `Context` can be instantiated with one of `SSLv2_METHOD`,\n        `SSLv3_METHOD`, `SSLv23_METHOD`, `TLSv1_METHOD`, `TLSv1_1_METHOD`,\n        or `TLSv1_2_METHOD`.\n        '
    methods = [SSLv23_METHOD, TLSv1_METHOD]
    for meth in methods:
        Context(meth)
    maybe = [SSLv2_METHOD, SSLv3_METHOD, TLSv1_1_METHOD, TLSv1_2_METHOD]
    for meth in maybe:
        try:
            Context(meth)
        except (Error, ValueError):
            pass
    with pytest.raises(TypeError):
        Context('')
    with pytest.raises(ValueError):
        Context(10)
`Context` can be instantiated with one of `SSLv2_METHOD`,
`SSLv3_METHOD`, `SSLv23_METHOD`, `TLSv1_METHOD`, `TLSv1_1_METHOD`,
or `TLSv1_2_METHOD`.
def test_method(self):
    '\n        `Context` can be instantiated with one of `SSLv2_METHOD`,\n        `SSLv3_METHOD`, `SSLv23_METHOD`, `TLSv1_METHOD`, `TLSv1_1_METHOD`,\n        or `TLSv1_2_METHOD`.\n        '
    methods = [SSLv23_METHOD, TLSv1_METHOD]
    for meth in methods:
        Context(meth)
    maybe = [SSLv2_METHOD, SSLv3_METHOD, TLSv1_1_METHOD, TLSv1_2_METHOD]
    for meth in maybe:
        try:
            Context(meth)
        except (Error, ValueError):
            pass
    with pytest.raises(TypeError):
        Context()
    with pytest.raises(ValueError):
        Context(10)