예제 #1
0
    def test_unlocking_with_incorrect_password(self):
        key = EncryptionKey(**self.example_data)
        unlock_result = key.unlock(password="******")

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

        self.assertFalse(unlock_result)
예제 #3
0
    def test_unlocking_with_correct_password(self):
        key = EncryptionKey(**self.example_data)
        unlock_result = key.unlock(password="******")

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

        self.assertTrue(unlock_result)