Esempio n. 1
0
 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='
     ))
Esempio n. 2
0
    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)
Esempio n. 3
0
 def tearDown(self):
     utils.set_nonce_handler(utils._default_nonce_handler)
Esempio n. 4
0
 def setUp(self):
     utils.set_nonce_handler(lambda _n: False)
Esempio n. 5
0
 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()