示例#1
0
 def test_order_0(self):
     self.assertEqual(scaled_int_str(0), '0')
示例#2
0
 def test_order_1(self):
     self.assertEqual(scaled_int_str(10), '10')
示例#3
0
 def test_order_6(self):
     self.assertEqual(scaled_int_str(6543210), '6.5M')
示例#4
0
 def test_order_5(self):
     self.assertEqual(scaled_int_str(543210), '543.2k')
示例#5
0
 def test_order_4(self):
     self.assertEqual(scaled_int_str(43210), '43.2k')
示例#6
0
 def test_order_3(self):
     self.assertEqual(scaled_int_str(3210), '3.2k')
示例#7
0
 def test_order_2(self):
     self.assertEqual(scaled_int_str(210), '210')