Searched refs:MakeBitsHumanReadable (Results 1 – 3 of 3) sorted by relevance
50 self.assertEqual(util.MakeBitsHumanReadable(0), '0 bit')51 self.assertEqual(util.MakeBitsHumanReadable(1023), '1023 bit')52 self.assertEqual(util.MakeBitsHumanReadable(1024), '1 Kibit')53 self.assertEqual(util.MakeBitsHumanReadable(1024 ** 2), '1 Mibit')54 self.assertEqual(util.MakeBitsHumanReadable(1024 ** 3), '1 Gibit')55 self.assertEqual(util.MakeBitsHumanReadable(1024 ** 3 * 5.3), '5.3 Gibit')56 self.assertEqual(util.MakeBitsHumanReadable(1024 ** 4 * 2.7), '2.7 Tibit')57 self.assertEqual(util.MakeBitsHumanReadable(1024 ** 5), '1 Pibit')58 self.assertEqual(util.MakeBitsHumanReadable(1024 ** 6), '1 Eibit')
63 from gslib.util import MakeBitsHumanReadable1551 MakeBitsHumanReadable(write_thru['bytes_per_second'] * 8))1565 MakeBitsHumanReadable(write_thru_file['bytes_per_second'] * 8))1579 MakeBitsHumanReadable(read_thru['bytes_per_second'] * 8))1593 MakeBitsHumanReadable(read_thru_file['bytes_per_second'] * 8))
546 def MakeBitsHumanReadable(num): function