Ejemplo n.º 1
0
    def test_unlocking_with_incorrect_password(self):
        key = EncryptionKey(**self.example_data)
        unlock_result = key.unlock(password="******")

        self.assertFalse(unlock_result)
Ejemplo n.º 2
0
    def test_unlocking_with_incorrect_password(self):
        key = EncryptionKey(**self.example_data)
        unlock_result = key.unlock(password="******")

        self.assertFalse(unlock_result)
Ejemplo n.º 3
0
    def test_unlocking_with_correct_password(self):
        key = EncryptionKey(**self.example_data)
        unlock_result = key.unlock(password="******")

        self.assertTrue(unlock_result)
Ejemplo n.º 4
0
    def test_unlocking_with_correct_password(self):
        key = EncryptionKey(**self.example_data)
        unlock_result = key.unlock(password="******")

        self.assertTrue(unlock_result)