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