def test_randint(self): num = random.randint(0, 255) self.assertGreaterEqual(num, 0) self.assertLessEqual(num, 255)
def setUpClass(cls): cls.data = [random.randint(0, 255) for i in range(cls.samples)]