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