예제 #1
0
    def setUp(self):
        #XXX Same as TestCryptoStartupShutdown.InitShutdown.setUp
        pathComponents = sys.modules['crypto'].__file__.split(os.sep)
        assert len(pathComponents) > 3
        chandlerDir = os.sep.join(pathComponents[0:-2])
        self.profileDir = os.path.join(chandlerDir, 'crypto')
        crypto.startup(self.profileDir)        

        super(TestSSL, self)._setup()
        self.testdir = os.path.join(chandlerDir, 'crypto', 'tests')
        super(TestSSL, self)._openRepository()
예제 #2
0
    def setUp(self):
        #XXX Same as TestCryptoStartupShutdown.InitShutdown.setUp
        pathComponents = sys.modules['crypto'].__file__.split(os.sep)
        assert len(pathComponents) > 3
        chandlerDir = os.sep.join(pathComponents[0:-2])
        self.profileDir = os.path.join(chandlerDir, 'crypto')
        crypto.startup(self.profileDir)

        super(TestSSL, self)._setup()
        self.testdir = os.path.join(chandlerDir, 'crypto', 'tests')
        super(TestSSL, self)._openRepository()
 def setUp(self):
     pathComponents = sys.modules['crypto'].__file__.split(os.sep)
     assert len(pathComponents) > 3
     chandlerDir = os.sep.join(pathComponents[0:-2])
     self.profileDir = os.path.join(chandlerDir, 'crypto')
     crypto.startup(self.profileDir)        
예제 #4
0
def initCrypto(profileDir):
    crypto.startup(profileDir)
예제 #5
0
 def setUp(self):
     pathComponents = sys.modules['crypto'].__file__.split(os.sep)
     assert len(pathComponents) > 3
     chandlerDir = os.sep.join(pathComponents[0:-2])
     self.profileDir = os.path.join(chandlerDir, 'crypto')
     crypto.startup(self.profileDir)