Esempio n. 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()
Esempio n. 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)        
Esempio n. 4
0
def initCrypto(profileDir):
    crypto.startup(profileDir)
Esempio n. 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)