示例#1
0
 def test_4YB_verbose(self):
     self.assertEqual(sjutils.pretty_size(self.size_4YB, verbose=True),
                      "4 YottaBytes")
示例#2
0
 def test_37B_verbose(self):
     self.assertEqual(sjutils.pretty_size(self.size_37B, verbose=True),
                      "37 Bytes")
示例#3
0
 def test_4YB(self):
     self.assertEqual(sjutils.pretty_size(self.size_4YB), "4 YB")
示例#4
0
 def test_3MB(self):
     self.assertEqual(sjutils.pretty_size(self.size_3MB), "3.0 MB")
示例#5
0
 def test_37B(self):
     self.assertEqual(sjutils.pretty_size(self.size_37B), "37 B")
示例#6
0
 def test_4YB_verbose(self):
     self.assertEqual(sjutils.pretty_size(self.size_4YB, verbose = True), "4 YottaBytes")
示例#7
0
 def test_4YB(self):
     self.assertEqual(sjutils.pretty_size(self.size_4YB), "4 YB")
示例#8
0
 def test_37B_verbose(self):
     self.assertEqual(sjutils.pretty_size(self.size_37B, verbose = True), "37 Bytes")
示例#9
0
 def test_37B(self):
     self.assertEqual(sjutils.pretty_size(self.size_37B), "37 B")
示例#10
0
 def test_3MB(self):
     self.assertEqual(sjutils.pretty_size(self.size_3MB), "3.0 MB")