def test_eib(self): self.assertEqual(size(FakeArray(4e15)), '3637.98 TiB')
def test_gib(self): self.assertEqual(size(FakeArray(4e9)), '3.73 GiB')
def test_tib(self): self.assertEqual(size(FakeArray(4e12)), '3.64 TiB')
def test_kib(self): self.assertEqual(size(FakeArray(4e4)), '39.06 KiB')
def test_mib(self): self.assertEqual(size(FakeArray(4e6)), '3.81 MiB')
def test_1023(self): self.assertEqual(size(FakeArray(1023)), '1023 B')
def test_1024(self): self.assertEqual(size(FakeArray(1024)), '1.00 KiB')
def test_bytes(self): self.assertEqual(size(FakeArray(8)), '8 B')