Fix test on Python 3: vault code expects bytes

(Different test than the last commit.)
This commit is contained in:
Marius Gedminas 2015-10-16 09:11:34 +03:00
parent f58f0c62e1
commit a1d95536f9

View file

@ -97,7 +97,7 @@ class TestVaultLib(unittest.TestCase):
lines = rdata.split(b'\n')
assert lines[0] == b"ansible"
assert v.cipher_name == 'TEST', "cipher name was not set"
assert v.b_version == "9.9"
assert v.b_version == b"9.9"
def test_encrypt_decrypt_aes(self):
if not HAS_AES or not HAS_COUNTER or not HAS_PBKDF2: