def test_human2bytes_raise():
    with pytest.raises(ValueError, match='value is not a number'):
        bytesconv.human2bytes('notnumber', 'KB')
    with pytest.raises(ValueError, match='invalid unit. It must be KB, MB, GB, TB, PB, EB, ZB'):
        bytesconv.human2bytes(1, 'XX')
def test_human2bytes_raise():
    with pytest.raises(ValueError, match='value is not a number'):
        bytesconv.human2bytes('notnumber', 'KB')
    with pytest.raises(ValueError, match='invalid unit. It must be KB, MB, GB, TB, PB, EB, ZB'):
        bytesconv.human2bytes(1, 'XX')