def test_bytes(self):
        b1 = rand.bytes(50)
        self.assertEqual(len(b1), 50)
        b2 = rand.bytes(num_bytes=50)  # parameter by name
        self.assertNotEqual(b1, b2)  #  Hip, Hip, Horay! FIPS complaince
        b3 = rand.bytes(num_bytes=0)
        self.assertEqual(len(b3), 0)
        exc = self.assertRaises(ValueError, rand.bytes, -1)
        self.assertEqual(str(exc), "num_bytes must not be negative")
Verify that we can obtain bytes from rand_bytes() and
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/linux/64bit/OpenSSL/test/test_rand.py/RandTests.test_bytes