def testMoreThan1M(self):
     self.assertEqual(upload_tracker.readable_bytes_string(299792458),
                      "285.9 MB")
 def testLessThan1K(self):
     self.assertEqual(upload_tracker.readable_bytes_string(42), "42 B")
 def testBetween1KAnd1M(self):
     self.assertEqual(upload_tracker.readable_bytes_string(1337), "1.3 kB")
 def testZero(self):
     self.assertEqual(upload_tracker.readable_bytes_string(0), "0 B")