예제 #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)