示例#1
0
 def test_123456YB(self):
     assert "102121.06 %s" % _("YB") == human_readable_bytes(
         123456789123456789123456789123)
示例#2
0
 def test_123ZB(self):
     assert "104.57 %s" % _("ZB") == human_readable_bytes(
         123456789123456789123456)
示例#3
0
 def test_123YB(self):
     assert "102.12 %s" % _("YB") == human_readable_bytes(
         123456789123456789123456789)
示例#4
0
 def test_123PB(self):
     assert "109.65 %s" % _("PB") == human_readable_bytes(
         123456789123456789)
示例#5
0
 def test_123EB(self):
     assert "107.08 %s" % _("EB") == human_readable_bytes(
         123456789123456789123)
示例#6
0
 def test_123TB(self):
     assert "112.28 %s" % _("TB") == human_readable_bytes(123456789123456)
示例#7
0
 def test_123GB(self):
     assert "114.98 %s" % _("GB") == human_readable_bytes(123456789123)
示例#8
0
 def test_123MB(self):
     assert "117.74 %s" % _("MB") == human_readable_bytes(123456789)
示例#9
0
 def test_123KB(self):
     assert "120.56 %s" % _("KB") == human_readable_bytes(123456)
示例#10
0
 def test_123B(self):
     assert "123 %s" % _("B") == human_readable_bytes(123)