Flaky test fix: random bytes can look like base64
This commit is contained in:
		
							parent
							
								
									902a35d5b9
								
							
						
					
					
						commit
						d99204369d
					
				@ -973,10 +973,6 @@ def test_generate_random(number_of_bytes):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    response = client.generate_random(NumberOfBytes=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)
 | 
					    response["Plaintext"].should.be.a(bytes)
 | 
				
			||||||
    len(response["Plaintext"]).should.equal(number_of_bytes)
 | 
					    len(response["Plaintext"]).should.equal(number_of_bytes)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user