@pytest.mark.parametrize('size, unit, precision, result', [(1, 'KB', 0, '1024'), (2, 'GB', 0, '2147483648'), (2, 'GB', 1, '2147483648.0'), (2, 'GB', 3, '2147483648.000')])
def test_human2bytes_precision(size, unit, precision, result):
    assert (bytesconv.human2bytes(size, unit, precision=precision) == result)
@pytest.mark.parametrize('size, unit, precision, result', [(1, 'KB', 0, '1024'), (2, 'GB', 0, '2147483648'), (2, 'GB', 1, '2147483648.0'), (2, 'GB', 3, '2147483648.000')])
def test_human2bytes_precision(size, unit, precision, result):
    assert (bytesconv.human2bytes(size, unit, precision=precision) == result)