def setUp(self): self.tmpdir = tempfile.mkdtemp() os.environ['HOME'] = self.tmpdir utils.set_nonce_handler(lambda _n: True) self.keypair = keychain.Keypair.from_secret_der(base64.b64decode( 'MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgOiXcCrreAqzw3xOT' 'L44O8DFyDfBAPQgZ0AmPGZfWmMShRANCAARD66FPRWFIFrNcn+DjLTSb8lP3pha3' 'joBvC7Cf4JR/LP7lECAc0mNfokw84+pLurAkP2rG1Y63n9KPwntflfRD=' ))
def setUp(self): self.tmpdir = tempfile.mkdtemp() os.environ['HOME'] = self.tmpdir utils.set_nonce_handler(lambda _n: True) self.keypairs = [] for _ in range(3): key = service.create_secret_key() key.identity = str(uuid.uuid4()) self.keypairs.append(key)
def tearDown(self): utils.set_nonce_handler(utils._default_nonce_handler)
def setUp(self): utils.set_nonce_handler(lambda _n: False)
def setUp(self): self.tmpdir = tempfile.mkdtemp() os.environ['HOME'] = self.tmpdir utils.set_nonce_handler(lambda _n: True) self.keypair = service.create_secret_key()