def _load_tmp_dh_test(self, dhfilename):
    '\n        Verify that calling ``Context.load_tmp_dh`` with the given filename\n        does not raise an exception.\n        '
    context = Context(TLSv1_METHOD)
    with open(dhfilename, 'w') as dhfile:
        dhfile.write(dhparam)
    context.load_tmp_dh(dhfilename)
Verify that calling ``Context.load_tmp_dh`` with the given filename
does not raise an exception.
def _load_tmp_dh_test(self, dhfilename):
    '\n        Verify that calling ``Context.load_tmp_dh`` with the given filename\n        does not raise an exception.\n        '
    context = Context(TLSv1_METHOD)
    with open(dhfilename, 'w') as dhfile:
        dhfile.write(dhparam)
    context.load_tmp_dh(dhfilename)