'Passing out of order TLS versions to C{raiseMinimumTo} and
C{lowerMaximumSecurityTo} will cause it to raise an exception.'

def test_tlsVersionRangeInOrderAtLeast(self):

    with self.assertRaises(ValueError) as e:
        sslverify.OpenSSLCertificateOptions(privateKey=self.sKey, certificate=self.sCert, raiseMinimumTo=sslverify.TLSVersion.TLSv1_0, lowerMaximumSecurityTo=sslverify.TLSVersion.SSLv3)
    self.assertEqual(e.exception.args, ('raiseMinimumTo    needs    to    be    lower    than    lowerMaximumSecurityTo',))
