Merge pull request #2512 from JackDanger/jackdanger/flaky-test-fix---random-bytes-can-look-like-base64

Flaky test fix: random bytes can look like base64
This commit is contained in:
Jack Danger 2019-10-23 16:34:30 -07:00 committed by GitHub
commit 577f81a18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)