Flaky test fix: random bytes can look like base64

This commit is contained in:
Jack Danger 2019-10-23 16:33:07 -07:00
parent 902a35d5b9
commit d99204369d

View File

@ -973,10 +973,6 @@ def test_generate_random(number_of_bytes):
response = client.generate_random(NumberOfBytes=number_of_bytes)
# Plaintext must NOT be base64-encoded
with assert_raises(Exception):
base64.b64decode(response["Plaintext"], validate=True)
response["Plaintext"].should.be.a(bytes)
len(response["Plaintext"]).should.equal(number_of_bytes)