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