示例#1
0
def test_check_negative_int2():
    a = np.random.randint(0, 100)
    with pytest.raises(ValueError):
        Validator.check_negative_int(a)
示例#2
0
def test_check_negative_int4():
    with pytest.raises(TypeError):
        Validator.check_negative_int("str")
示例#3
0
def test_check_negative_int1():
    a = np.random.randint(-100, -1)
    assert Validator.check_negative_int(a) == a