예제 #1
0
 def test_FF(self):
     self.assertEqual(size_name(1023), '1023')
예제 #2
0
 def test_1G2(self):
     self.assertEqual(size_name(1024 * 1024 * 1024), '1G')
예제 #3
0
 def test_zero(self):
     self.assertEqual(size_name(0), '0')
예제 #4
0
 def test_1M(self):
     self.assertEqual(size_name(1023 * 1024 + 512), '1M')
예제 #5
0
 def test_1M3(self):
     self.assertEqual(size_name(1024 * 1024), '1M')
예제 #6
0
 def test_1023K(self):
     self.assertEqual(size_name(1023 * 1024), '1023K')
예제 #7
0
 def test_1023K_2(self):
     self.assertEqual(size_name(1023 * 1024 + 511), '1023K')
예제 #8
0
 def test_zero(self):
     self.assertEqual(size_name(0), '0')
예제 #9
0
 def test_1K(self):
     self.assertEqual(size_name(1024), '1K')
예제 #10
0
 def test_1M3(self):
     self.assertEqual(size_name(1024 * 1024), '1M')
예제 #11
0
 def test_1G2(self):
     self.assertEqual(size_name(1024 * 1024 * 1024), '1G')
예제 #12
0
 def test_1M(self):
     self.assertEqual(size_name(1023 * 1024 + 512), '1M')
예제 #13
0
 def test_1023K_2(self):
     self.assertEqual(size_name(1023 * 1024 + 511), '1023K')
예제 #14
0
 def test_1023K(self):
     self.assertEqual(size_name(1023 * 1024), '1023K')
예제 #15
0
 def test_1K(self):
     self.assertEqual(size_name(1024), '1K')
예제 #16
0
 def test_FF(self):
     self.assertEqual(size_name(1023), '1023')