Exemplo n.º 1
0
 def test_03_randrange(self):
     r = urandom.randrange(100, 200, step=10)
     self.assertTrue(100 <= r <= 200, r)
     self.assertTrue(r % 10 == 0, r)
     r = urandom.randrange(100)
     self.assertTrue(r <= 100)
Exemplo n.º 2
0
 def test_03_randrange(self):
     r = urandom.randrange(100, 200, step=10)
     self.assertTrue(100<=r<=200, r)
     self.assertTrue(r % 10 == 0, r)
     r = urandom.randrange(100)
     self.assertTrue(r <= 100)