'If C{dhParams} is set, they are loaded into each new context.'

def test_dhParams(self):

    class FakeDiffieHellmanParameters(object, ):
        _dhFile = FilePath('dh.params')
    dhParams = FakeDiffieHellmanParameters()
    opts = sslverify.OpenSSLCertificateOptions(privateKey=self.sKey, certificate=self.sCert, dhParameters=dhParams)
    opts._contextFactory = FakeContext
    ctx = opts.getContext()
    self.assertEqual(FakeDiffieHellmanParameters._dhFile.path, ctx._dhFilename)
