def test_unlocking_with_incorrect_password(self):
        key = EncryptionKey(**self.example_data)
        unlock_result = key.unlock(password="******")

        self.assertFalse(unlock_result)
Example #2
0
    def test_unlocking_with_incorrect_password(self):
        key = EncryptionKey(**self.example_data)
        unlock_result = key.unlock(password="******")

        self.assertFalse(unlock_result)
    def test_unlocking_with_correct_password(self):
        key = EncryptionKey(**self.example_data)
        unlock_result = key.unlock(password="******")

        self.assertTrue(unlock_result)
Example #4
0
    def test_unlocking_with_correct_password(self):
        key = EncryptionKey(**self.example_data)
        unlock_result = key.unlock(password="******")

        self.assertTrue(unlock_result)