mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix test on Python 3: vault code expects bytes
(Different test than the last commit.)
This commit is contained in:
parent
f58f0c62e1
commit
a1d95536f9
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class TestVaultLib(unittest.TestCase):
|
||||||
lines = rdata.split(b'\n')
|
lines = rdata.split(b'\n')
|
||||||
assert lines[0] == b"ansible"
|
assert lines[0] == b"ansible"
|
||||||
assert v.cipher_name == 'TEST', "cipher name was not set"
|
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):
|
def test_encrypt_decrypt_aes(self):
|
||||||
if not HAS_AES or not HAS_COUNTER or not HAS_PBKDF2:
|
if not HAS_AES or not HAS_COUNTER or not HAS_PBKDF2:
|
||||||
|
|
Loading…
Reference in a new issue