# Path: px/px_units.py
# def bytes_to_string(bytes_count):
#     KB = 1024 ** 1
#     MB = 1024 ** 2
#     GB = 1024 ** 3
#     TB = 1024 ** 4


from px import px_units


def test_bytes_to_string():
    assert px_units.bytes_to_string(1024 * 7 - 1) == "7167B"
    assert px_units.bytes_to_string(1024 * 7) == "7KB"


# Path: px/px_units.py
# def bytes_to_string(bytes_count):
#     KB = 1024 ** 1
#     MB = 1024 ** 2
#     GB = 1024 ** 3
#     TB = 1024 ** 4


# Path: tests/px_units_test.py
from px import px_units



def test_bytes_to_string():
    assert px_units.bytes_to_string(1024 * 7 - 1) == "7167B"
    assert px_units.bytes_to_string(1024 * 7) == "7KB"


    assert px_units.bytes_to_string((1024 ** 2) * 7 - 1) == "7168KB"