Exemplo n.º 1
0
def test_generate_random_int_args():
    maxvalue = 1
    random_int = randomness.generate_random_int(maxvalue)
    Assert.greater_equal(random_int, 0)
    Assert.less_equal(random_int, maxvalue)
Exemplo n.º 2
0
def test_generate_random_int_noargs():
    # maxint is the default max, so no need to check against it
    random_int = randomness.generate_random_int()
    Assert.greater(random_int, 0)
Exemplo n.º 3
0
def test_generate_random_int_args():
    maxvalue = 1
    random_int = randomness.generate_random_int(maxvalue)
    Assert.greater_equal(random_int, 0)
    Assert.less_equal(random_int, maxvalue)
Exemplo n.º 4
0
def test_generate_random_int_args():
    max = 1
    random_int = randomness.generate_random_int(max)
    assert 0 <= random_int <= max
Exemplo n.º 5
0
def test_generate_random_int_noargs():
    # maxint is the default max, so no need to check against it
    random_int = randomness.generate_random_int()
    Assert.greater(random_int, 0)