Example #1
0
 def testBadPassword(self):
   self.assertFalse(truecrypt.mount(test_file, 'bad_pass', test_mount))
   self.assertFalse(os.path.exists(test_clearfile))
Example #2
0
def try_candidate(passwd):
  #print 'trying: ', passwd
  if truecrypt.mount(TARGET_FILE, passwd, MOUNT_PT):
    print '******Found! ', passwd
    return True
  return False
Example #3
0
 def testCorrect(self):
   self.assertTrue(truecrypt.mount(test_file, test_pwd, test_mount))
   self.assertTrue(os.path.exists(test_clearfile))