diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-08-05 11:51:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-08-05 11:51:09 +0000 |
| commit | f2b2aa50b4831e1888f02d2a8dffec2a36d03627 (patch) | |
| tree | 51279608e1934018e5ede21a7f8ffb2849d976c7 /nova/tests | |
| parent | 7591a1d8e136cf343b14aa0ef4c957403b5dbe2c (diff) | |
| parent | 56d3d29ad2451bd0e753e7878827a08b458b726b (diff) | |
Merge "Drop AES functions and pycrypto dependency"
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_crypto.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/nova/tests/test_crypto.py b/nova/tests/test_crypto.py index 89de1247f..c9ee6ca02 100644 --- a/nova/tests/test_crypto.py +++ b/nova/tests/test_crypto.py @@ -29,23 +29,6 @@ from nova import utils FLAGS = flags.FLAGS -class SymmetricKeyTestCase(test.TestCase): - """Test case for Encrypt/Decrypt""" - def test_encrypt_decrypt(self): - key = 'c286696d887c9aa0611bbb3e2025a45a' - plain_text = "The quick brown fox jumped over the lazy dog." - - # No IV supplied (all 0's) - encrypt = crypto.encryptor(key) - cipher_text = encrypt(plain_text) - self.assertNotEquals(plain_text, cipher_text) - - decrypt = crypto.decryptor(key) - plain = decrypt(cipher_text) - - self.assertEquals(plain_text, plain) - - class X509Test(test.TestCase): def test_can_generate_x509(self): with utils.tempdir() as tmpdir: |
