':py:obj:`Context` can be instantiated with one of :py:obj:`SSLv2_METHOD`,
:py:obj:`SSLv3_METHOD`, :py:obj:`SSLv23_METHOD`, :py:obj:`TLSv1_METHOD`,
:py:obj:`TLSv1_1_METHOD`, or :py:obj:`TLSv1_2_METHOD`.'

def test_method(self):

    methods = [SSLv3_METHOD, SSLv23_METHOD, TLSv1_METHOD]
    for meth in methods:
        Context(meth)
    maybe = [SSLv2_METHOD, TLSv1_1_METHOD, TLSv1_2_METHOD]
    for meth in maybe:
        try:
            Context(meth)
        except (Error, ValueError):
            pass
    self.assertRaises(TypeError, Context, '')
    self.assertRaises(ValueError, Context, 10)
