Lines Matching refs:tempdir
142 tempdir = tempfile.mkdtemp()
146 pubkey = os.path.join(tempdir, 'pubkey.pub')
155 shutil.rmtree(tempdir)
159 tempdir = tempfile.mkdtemp()
163 shortfile = os.path.join(tempdir, 'shortfile.bin')
181 longfile = os.path.join(tempdir, 'longfile.bin')
196 shutil.rmtree(tempdir)
225 tempdir = tempfile.mkdtemp()
227 challenge_file = os.path.join(tempdir, 'challenge')
230 out_cred = os.path.join(tempdir, 'credential')
237 shutil.rmtree(tempdir)
243 tempdir = tempfile.mkdtemp()
245 out_cred = os.path.join(tempdir, 'credential')
253 shutil.rmtree(tempdir)
424 tempdir = tempfile.mkdtemp()
426 shutil.copy2(correctCreds.name, tempdir)
427 shutil.copy2(wrongCreds.name, tempdir)
430 self.assertEqual(main([tempdir]), 0)
433 shutil.rmtree(tempdir)
446 tempdir = tempfile.mkdtemp()
448 shutil.copy2(correctCreds.name, tempdir)
451 self.assertEqual(main([wrongCreds.name, tempdir]), 0)
455 shutil.rmtree(tempdir)
458 tempdir = tempfile.mkdtemp()
460 shutil.copy2(wrongCreds.name, tempdir)
463 self.assertEqual(main([tempdir, correctCreds.name]), 0)
468 shutil.rmtree(tempdir)
473 tempdir = tempfile.mkdtemp()
476 with open(os.path.join(tempdir, 'so_random'), 'w') as f:
481 main([tempdir])
484 shutil.rmtree(tempdir)