mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Fix pretty_size unit tests.
This commit is contained in:
parent
a2643b52f9
commit
aaba940dea
@ -38,7 +38,7 @@ def test_pretty_size():
|
||||
assert utils.pretty_size(100) == "100B"
|
||||
assert utils.pretty_size(1024) == "1kB"
|
||||
assert utils.pretty_size(1024 + (1024/2.0)) == "1.5kB"
|
||||
assert utils.pretty_size(1024*1024) == "1M"
|
||||
assert utils.pretty_size(1024*1024) == "1MB"
|
||||
|
||||
|
||||
def test_pkg_data():
|
||||
|
Loading…
Reference in New Issue
Block a user