test_format: Allow 2.00TiB

This commit is contained in:
John Vandenberg 2020-12-05 05:48:59 +07:00
parent b598869450
commit d0e309ad0f

View file

@ -71,7 +71,7 @@ def test_byteformat():
assert byte(1024 + 512) == "1.50KiB"
assert byte(1024 * 1024 * 2 + 1024 * 512) == "2.50MiB"
assert byte(1024 * 1024 * 1024 * 4 + 1024 * 1024 * 512) == "4.50GiB"
assert byte(1024 * 1024 * 1024 * 1024 * 2) == "2048.00GiB"
assert byte(1024 * 1024 * 1024 * 1024 * 2) in ["2048.00GiB", "2.00TiB"]
def test_duration():