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