~rick-fdd/pyopenssl/verify_cb_tests

« back to all changes in this revision

Viewing changes to test/test_ssl.py

  • Committer: Jean-Paul Calderone
  • Date: 2009-07-05 17:05:45 UTC
  • Revision ID: exarkun@divmod.com-20090705170545-xglc96z3yz70iv7x
Actually add util.py :/  And move mktemp into it, and add cleanup code to tearDown

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
"""
6
6
 
7
7
from sys import platform
8
 
from tempfile import mktemp
9
8
from socket import socket
10
9
from os import makedirs, symlink
11
10
from os.path import join
36
35
    """
37
36
    Unit tests for L{OpenSSL.SSL.Context}.
38
37
    """
39
 
    def mktemp(self):
40
 
        """
41
 
        Pathetic substitute for twisted.trial.unittest.TestCase.mktemp.
42
 
        """
43
 
        return mktemp(dir=".")
44
 
 
45
 
 
46
38
    def test_method(self):
47
39
        """
48
40
        L{Context} can be instantiated with one of L{SSLv2_METHOD},